What is wrong with this url rewrite? help muchh appriciated!

Discussion in 'Apache' started by xbobx, Nov 30, 2009.

  1. #1
    Options +FollowSymlinks
    RewriteEngine on
    RewriteBase /
    RewriteRule ^/(.*)$ /sites/stratosphericdesign/index.php?page=$1 [L]

    bassically....for my site

    stratosphericdesign.com

    I want (for example)

    stratosphericdesign.com/home

    to go to

    stratosphericdesign.com/sites/stratosphericdesign/index.php?page=home

    i will love you forever if you can help
    I'm afraid i'm v new to all this rewriting malarky :/
     
    xbobx, Nov 30, 2009 IP
  2. xbobx

    xbobx Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    yayyy dont worry i worked it out:

    Options +FollowSymlinks
    RewriteEngine on
    RewriteBase /
    RewriteRule ^([a-z]*)$ sites/stratosphericdesign/index.php?page=$1 [L]

    spot the difference ;)
     
    xbobx, Nov 30, 2009 IP