[Skip to main content](#vessel-content)

#   slash at the end of the url address

##

- **[amtir](/forum/user/37302-amtir "View amtir's Profile")**
- [![amtir's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/37302-amtir "View amtir's Profile") Topic Author
- [ Offline](/forum/user/37302-amtir)

Less More

- Posts: 3
- Thank you received: 0
-
-

10 years 3 months ago [\#248292](#248292) by [amtir](/forum/user/37302-amtir "View amtir's Profile")  *[slash at the end of the url address](/forum/27-checkout/886120-slash-at-the-end-of-the-url-address#248292 "-- url of the page with the problem -- :   www.autorelaks.pl/shop/  -- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.6.2 -- PHP version -- : 7 -- Browser(s) name and version -- : latest chrome, firefox -- Error-message(debug-mod must be tuned on) -- : The cart is empty  Hi, I noticed some time ago, that if I add slash at the end of the url address of my website in my .htaccess so google is happy and this speed up a bit url loading I can not add products in hikashop. for example   www.autorelaks.pl/shop/  or   www.autorelaks.pl/shop/product/5-leu/  or anything with / at the end of the url, Hikashop will not add new product it will just say The cart is empty. If I remove slash from the url eveything is ok. To add slash to all my urls I use this in .htaccess RewriteCond %{REQUEST&#95;FILENAME} !-f RewriteRule ^(.&#42;)(&#91;^/&#93;)$ /$1$2/ &#91;L,R=301&#93; I tried other rules but with the same problem.  I really would like to have / in all my urls . I search the topics but I could not find answers. Please can you help me.  Thanks Adam")* was created by *[amtir](/forum/user/37302-amtir "View amtir's Profile")*

-- url of the page with the problem -- : [ www.autorelaks.pl/shop/](https://www.autorelaks.pl/shop/)
-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.6.2
-- PHP version -- : 7
-- Browser(s) name and version -- : latest chrome, firefox
-- Error-message(debug-mod must be tuned on) -- : The cart is empty

Hi,
I noticed some time ago, that if I add slash at the end of the url address of my website in my .htaccess so google is happy and this speed up a bit url loading I can not add products in hikashop.
for example
[ www.autorelaks.pl/shop/](https://www.autorelaks.pl/shop/) or [ www.autorelaks.pl/shop/product/5-leu/](https://www.autorelaks.pl/shop/product/5-leu/) or anything with / at the end of the url, Hikashop will not add new product it will just say The cart is empty.
If I remove slash from the url eveything is ok.
To add slash to all my urls I use this in .htaccess
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)([^/])$ /$1$2/ [L,R=301]
I tried other rules but with the same problem.

I really would like to have / in all my urls . I search the topics but I could not find answers. Please can you help me.

Thanks
Adam

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4NjEyMC1zbGFzaC1hdC10aGUtZW5kLW9mLXRoZS11cmwtYWRkcmVzcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

10 years 3 months ago [\#248293](#248293) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[slash at the end of the url address](/forum/27-checkout/886120-slash-at-the-end-of-the-url-address#248293 "-- url of the page with the problem -- :   www.autorelaks.pl/shop/  -- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.6.2 -- PHP version -- : 7 -- Browser(s) name and version -- : latest chrome, firefox -- Error-message(debug-mod must be tuned on) -- : The cart is empty  Hi, I noticed some time ago, that if I add slash at the end of the url address of my website in my .htaccess so google is happy and this speed up a bit url loading I can not add products in hikashop. for example   www.autorelaks.pl/shop/  or   www.autorelaks.pl/shop/product/5-leu/  or anything with / at the end of the url, Hikashop will not add new product it will just say The cart is empty. If I remove slash from the url eveything is ok. To add slash to all my urls I use this in .htaccess RewriteCond %{REQUEST&#95;FILENAME} !-f RewriteRule ^(.&#42;)(&#91;^/&#93;)$ /$1$2/ &#91;L,R=301&#93; I tried other rules but with the same problem.  I really would like to have / in all my urls . I search the topics but I could not find answers. Please can you help me.  Thanks Adam")*

Hi,

The URL routing is provided by Joomla itself and not by HikaShop.
So there is nothing to do or modify in HikaShop ; it is related to the Joomla router (or a router/SEF component).

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4NjEyMC1zbGFzaC1hdC10aGUtZW5kLW9mLXRoZS11cmwtYWRkcmVzcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.071 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
