Problems, need help? Have a tip or advice? Post it here.
3 posts Page 1 of 1
Hey guys, so having a little issue with a re-direct when i turn on pretty url's and copy over what's generated from gen_htaccess.php

My setup is i have a /store/ folder which has it's own template and sub folders controlled from couch, but i've also put in another folder (manually, not from within couch) to have a US store, so it works like /store/us/ and that has it's own template and sub folders.

Now the 2 main url's work fine, but when i visit a folder from within /store/us/ it redirects to the main one, so /store/us/t-shirts/ ends up here /store/t-shirts/ and i can't work out why. If i turn off pretty url's it all works fine. So i have a feeling it's something in the htaccess causing the issue.

This is what's produced in the htaccess file, any help would be much appreciated.

Code: Select all
RewriteRule ^store/us/index.php$ "store/us/" [R=301,L,QSA]
RewriteRule ^store/index.php$ "store/" [R=301,L,QSA]

#store/us/index.php
RewriteRule ^store/us/.*?([^\.\/]*)\.html$ store/us/?pname=$1 [L,QSA]
RewriteRule ^store/us/([1-2]\d{3})/(?:(0[1-9]|1[0-2])/(?:(0[1-9]|1[0-9]|2[0-9]|3[0-1])/)?)?$ store/us/?d=$1$2$3 [L,QSA]
RewriteRule ^store/us/[^\.]*?([^/\.]*)/$ store/us/?fname=$1 [L,QSA]
RewriteRule ^store/us/[^\.]*?([^/\.]*)$ "$0/" [R=301,L,QSA]

#store/index.php
RewriteRule ^store/.*?([^\.\/]*)\.html$ store/?pname=$1 [L,QSA]
RewriteRule ^store/([1-2]\d{3})/(?:(0[1-9]|1[0-2])/(?:(0[1-9]|1[0-9]|2[0-9]|3[0-1])/)?)?$ store/?d=$1$2$3 [L,QSA]
RewriteRule ^store/[^\.]*?([^/\.]*)/$ store/?fname=$1 [L,QSA]
RewriteRule ^store/[^\.]*?([^/\.]*)$ "$0/" [R=301,L,QSA]
Hi,

I'll need to take a look at your setup to know what could be going wrong.
Please PM me the FTP+Couch access creds if that is okay with you.

Thanks.
Hi KK,

Seems to have been a caching issue with the old htaccess file, all seems to work a day or 2 later, i thought a hard refresh would've included the htaccess. Never mind,

Thanks anyway.
3 posts Page 1 of 1