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.
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]