Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
  1. #1
    Senior Coder
    Join Date
    Aug 2009
    Location
    Mansfield, Nottinghamshire, UK
    Posts
    1,555
    Thanks
    57
    Thanked 148 Times in 147 Posts

    if statement for multipul rewirteBases

    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.

    Code:
    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:

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

    Stick them both together:


    Code:
    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
    Last edited by Phil Jackson; 02-18-2011 at 08:10 AM.
    Website Design Mansfield
    PHP Code:
    function I_LOVE(){function b(&$b='P'){$b.='P';}function a($_){return $_++;}$b='P';define("B",'H');b($b=implode('',array($b=a($b),$b=a(B))));b($b);return $b;}
    echo 
    I_LOVE(); 


 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •