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

#   Hikashop Not Working with Simple SEF/Rewrite Rule

##

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

Less More

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

14 years 9 months ago [\#38880](#38880) by [dms93418](/forum/user/6060-dms93418 "View dms93418's Profile")  *[Hikashop Not Working with Simple SEF/Rewrite Rule](/forum/3-bug-report/38880-hikashop-not-working-with-simple-sef-rewrite-rule#38880 "I've tried going through support but it's been a week now and still no resolution. It takes a long, long time to get any response from support.  My shopping cart's State dropdown field is not working and it is entirely due to using SEF URLs in Joomla.  Evidently Hikashop doesn't support simple, standard rewrite rules.  IterationLimit 10  MaxMatchCount 10  RewriteCond %{HTTP&#95;URL} (/&#91;^.&#93;&#42;|&#92;.(html?|php)|!administrator)$ RewriteCond %{REQUEST&#95;FILENAME} !-f RewriteCond %{REQUEST&#95;FILENAME} !-d RewriteRule (.&#42;) /index.php &#91;U,L&#93;  This causes the URL /store/checkout/state/tmpl-component.html?field&#95;type=address&amp;field&#95;namekey=address&#95;state&amp;namekey=country&#95;United&#95;States&#95;of&#95;America&#95;223 to NOT work.  If the URL used is /store/checkout/state/?field&#95;type=address&amp;field&#95;namekey=address&#95;state&amp;namekey=country&#95;United&#95;States&#95;of&#95;America&#95;223 it DOES work but there doesn't seem to be any way to get Hikashop to use this instead.  I'm not having any problems with my Joomla site or any of my other third party components. They all work well with this rule.  Does anyone have an example rule that actually works with Hikashop or can someone point me in the right direction?  Thanks.")* was created by *[dms93418](/forum/user/6060-dms93418 "View dms93418's Profile")*

I've tried going through support but it's been a week now and still no resolution. It takes a long, long time to get any response from support.

My shopping cart's State dropdown field is not working and it is entirely due to using SEF URLs in Joomla.

Evidently Hikashop doesn't support simple, standard rewrite rules.

IterationLimit 10

MaxMatchCount 10

RewriteCond %{HTTP_URL} (/[^.]*&#124;\.(html?&#124;php)&#124;!administrator)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) /index.php [U,L]

This causes the URL /store/checkout/state/tmpl-component.html?field_type=address&amp;field_namekey=address_state&amp;namekey=country_United_States_of_America_223 to NOT work.

If the URL used is /store/checkout/state/?field_type=address&amp;field_namekey=address_state&amp;namekey=country_United_States_of_America_223 it DOES work but there doesn't seem to be any way to get Hikashop to use this instead.

I'm not having any problems with my Joomla site or any of my other third party components. They all work well with this rule.

Does anyone have an example rule that actually works with Hikashop or can someone point me in the right direction?

Thanks.

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

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

Less More

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

14 years 9 months ago [\#38913](#38913) by [dms93418](/forum/user/6060-dms93418 "View dms93418's Profile")  Replied by *[dms93418](/forum/user/6060-dms93418 "View dms93418's Profile")* on topic *[Re: Hikashop Not Working with Simple SEF/Rewrite Rule](/forum/3-bug-report/38880-hikashop-not-working-with-simple-sef-rewrite-rule#38913 "I've tried going through support but it's been a week now and still no resolution. It takes a long, long time to get any response from support.  My shopping cart's State dropdown field is not working and it is entirely due to using SEF URLs in Joomla.  Evidently Hikashop doesn't support simple, standard rewrite rules.  IterationLimit 10  MaxMatchCount 10  RewriteCond %{HTTP&#95;URL} (/&#91;^.&#93;&#42;|&#92;.(html?|php)|!administrator)$ RewriteCond %{REQUEST&#95;FILENAME} !-f RewriteCond %{REQUEST&#95;FILENAME} !-d RewriteRule (.&#42;) /index.php &#91;U,L&#93;  This causes the URL /store/checkout/state/tmpl-component.html?field&#95;type=address&amp;field&#95;namekey=address&#95;state&amp;namekey=country&#95;United&#95;States&#95;of&#95;America&#95;223 to NOT work.  If the URL used is /store/checkout/state/?field&#95;type=address&amp;field&#95;namekey=address&#95;state&amp;namekey=country&#95;United&#95;States&#95;of&#95;America&#95;223 it DOES work but there doesn't seem to be any way to get Hikashop to use this instead.  I'm not having any problems with my Joomla site or any of my other third party components. They all work well with this rule.  Does anyone have an example rule that actually works with Hikashop or can someone point me in the right direction?  Thanks.")*

Ok I figured it out on my own after trial and error and discussions with another person...

The above rewrite rule example is from Joomla.org:

[ docs.joomla.org/Enabling\_Search\_Engine\_F...EF)\_URLs\_on\_IIS/IIS6](http://docs.joomla.org/Enabling_Search_Engine_Friendly_(SEF)_URLs_on_IIS/IIS6)

It does NOT work with Hikashop. Instead, I used this which fixed SEF URLs:

IterationLimit 10

MaxMatchCount 10

RewriteCond %{HTTP_URL} ([a-zA-Z0-9\-]+\.html&#124;[a-zA-Z0-9\-]+\.php)&#124;!administrator)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) /index.php [U,L]

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86540
- Thank you received: 14299
-
-

14 years 9 months ago [\#38917](#38917) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Hikashop Not Working with Simple SEF/Rewrite Rule](/forum/3-bug-report/38880-hikashop-not-working-with-simple-sef-rewrite-rule#38917 "I've tried going through support but it's been a week now and still no resolution. It takes a long, long time to get any response from support.  My shopping cart's State dropdown field is not working and it is entirely due to using SEF URLs in Joomla.  Evidently Hikashop doesn't support simple, standard rewrite rules.  IterationLimit 10  MaxMatchCount 10  RewriteCond %{HTTP&#95;URL} (/&#91;^.&#93;&#42;|&#92;.(html?|php)|!administrator)$ RewriteCond %{REQUEST&#95;FILENAME} !-f RewriteCond %{REQUEST&#95;FILENAME} !-d RewriteRule (.&#42;) /index.php &#91;U,L&#93;  This causes the URL /store/checkout/state/tmpl-component.html?field&#95;type=address&amp;field&#95;namekey=address&#95;state&amp;namekey=country&#95;United&#95;States&#95;of&#95;America&#95;223 to NOT work.  If the URL used is /store/checkout/state/?field&#95;type=address&amp;field&#95;namekey=address&#95;state&amp;namekey=country&#95;United&#95;States&#95;of&#95;America&#95;223 it DOES work but there doesn't seem to be any way to get Hikashop to use this instead.  I'm not having any problems with my Joomla site or any of my other third party components. They all work well with this rule.  Does anyone have an example rule that actually works with Hikashop or can someone point me in the right direction?  Thanks.")*

Hi,

Well that explains why it didn't work. Indeed, if you change the default htaccess of joomla that can have consequences on SEF and thus break stuff.

Thank you for posting the solution. I'm sure it will help others with the same problem on IIS with that htaccess modification implemented.

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

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

Less More

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

14 years 9 months ago [\#39013](#39013) by [dms93418](/forum/user/6060-dms93418 "View dms93418's Profile")  Replied by *[dms93418](/forum/user/6060-dms93418 "View dms93418's Profile")* on topic *[Re: Hikashop Not Working with Simple SEF/Rewrite Rule](/forum/3-bug-report/38880-hikashop-not-working-with-simple-sef-rewrite-rule#39013 "I've tried going through support but it's been a week now and still no resolution. It takes a long, long time to get any response from support.  My shopping cart's State dropdown field is not working and it is entirely due to using SEF URLs in Joomla.  Evidently Hikashop doesn't support simple, standard rewrite rules.  IterationLimit 10  MaxMatchCount 10  RewriteCond %{HTTP&#95;URL} (/&#91;^.&#93;&#42;|&#92;.(html?|php)|!administrator)$ RewriteCond %{REQUEST&#95;FILENAME} !-f RewriteCond %{REQUEST&#95;FILENAME} !-d RewriteRule (.&#42;) /index.php &#91;U,L&#93;  This causes the URL /store/checkout/state/tmpl-component.html?field&#95;type=address&amp;field&#95;namekey=address&#95;state&amp;namekey=country&#95;United&#95;States&#95;of&#95;America&#95;223 to NOT work.  If the URL used is /store/checkout/state/?field&#95;type=address&amp;field&#95;namekey=address&#95;state&amp;namekey=country&#95;United&#95;States&#95;of&#95;America&#95;223 it DOES work but there doesn't seem to be any way to get Hikashop to use this instead.  I'm not having any problems with my Joomla site or any of my other third party components. They all work well with this rule.  Does anyone have an example rule that actually works with Hikashop or can someone point me in the right direction?  Thanks.")*

> nicolas wrote: Hi,
>
> Well that explains why it didn't work. Indeed, if you change the default htaccess of joomla that can have consequences on SEF and thus break stuff.
>
> Thank you for posting the solution. I'm sure it will help others with the same problem on IIS with that htaccess modification implemented.

I didn't touch htaccess... This is an IIS/Windows box and it doesn't use htaccess. I'm using IIRF which is an ISAPI rewrite module for IIS. I created my rewrite rules config file from scratch using the example on Joomla's web site.

The issue is that what is considered valid rewrite rules by the Joomla developers is NOT working with Hikashop.

I would think this has to do with Hikashop using tmpl-component.php instead of what the Joomla default is... No other extensions or modules have this problem.

I'm not trying to badmouth Hikashop...to the contrary I like it a lot so far.

However, this issue should be apparent and publicised and/or fixed by Hikashop development because if you Google it, lots of people have had this problem with no apparent resolution except to turn off SEF URLs. This shouldn't be a requirement to use this shopping cart...or any shopping cart for that matter.

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86540
- Thank you received: 14299
-
-

14 years 9 months ago [\#39115](#39115) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Hikashop Not Working with Simple SEF/Rewrite Rule](/forum/3-bug-report/38880-hikashop-not-working-with-simple-sef-rewrite-rule#39115 "I've tried going through support but it's been a week now and still no resolution. It takes a long, long time to get any response from support.  My shopping cart's State dropdown field is not working and it is entirely due to using SEF URLs in Joomla.  Evidently Hikashop doesn't support simple, standard rewrite rules.  IterationLimit 10  MaxMatchCount 10  RewriteCond %{HTTP&#95;URL} (/&#91;^.&#93;&#42;|&#92;.(html?|php)|!administrator)$ RewriteCond %{REQUEST&#95;FILENAME} !-f RewriteCond %{REQUEST&#95;FILENAME} !-d RewriteRule (.&#42;) /index.php &#91;U,L&#93;  This causes the URL /store/checkout/state/tmpl-component.html?field&#95;type=address&amp;field&#95;namekey=address&#95;state&amp;namekey=country&#95;United&#95;States&#95;of&#95;America&#95;223 to NOT work.  If the URL used is /store/checkout/state/?field&#95;type=address&amp;field&#95;namekey=address&#95;state&amp;namekey=country&#95;United&#95;States&#95;of&#95;America&#95;223 it DOES work but there doesn't seem to be any way to get Hikashop to use this instead.  I'm not having any problems with my Joomla site or any of my other third party components. They all work well with this rule.  Does anyone have an example rule that actually works with Hikashop or can someone point me in the right direction?  Thanks.")*

The tmpl=component parameter used by HikaShop is a standard parameter of Joomla in order to display a page without the template (menus, modules, etc) around main area of the page.
HikaShop uses it a lot for popups which not many extensions use.

Also, on most websites, even with SEF turned on, that parameter is not a problem and it works fine. I don't think that there is anything we can do in HikaShop to avoid the problem, except change all the views where we use that parameter to not use it anymore. That's definitely not a small task.

As you're saying, I think that it's a good idea to add that to the compatibility documentation we have so that other users can easily find it if they have the same problem. We'll do that.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8zODg4MC1oaWthc2hvcC1ub3Qtd29ya2luZy13aXRoLXNpbXBsZS1zZWYtcmV3cml0ZS1ydWxlP3RtcGw9bWFya2Rvd24=) 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.086 seconds

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