...

View Full Version : if statement for multipul rewirteBases



Phil Jackson
02-18-2011, 07:58 AM
Hi, im really, really stuck on this and have been for daya and yet hundreds of views, no replies so hoping to get some results here.

in my htaccess file I wrote a simple rule to always load the index.php file and let php do all the work.



RewriteBase /
RewriteRule ^[a-z0-9\-_/]*$ index.php [L]

which works.

when I use a shared ssl (https://web43.secure-secure.co.uk/the-tack-shop.co.uk/) for this site things go tits up, so I wrote another:



RewriteBase /the-tack-shop.co.uk/
RewriteRule ^[a-z0-9\-_/]*$ index.php [L]

which works.

Stick them both together:





RewriteBase /the-tack-shop.co.uk/
RewriteRule ^[a-z0-9\-_/]*$ index.php [L]

RewriteBase /
RewriteRule ^[a-z0-9\-_/]*$ index.php [L]


and only one will work (always the bottom on no matter the order).

Can somebody PLEASE point me in the right direction. Regards, Phil



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum