1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Mod Rewrite help...

Discussion in 'Apache' started by BlueDevilMedia, Nov 14, 2007.

  1. #1
    Ok, I've searched and read and searched and read but I can't get this to work.

    I'm trying to rewrite

    http://www.domain.com/index.php?REQ=[COLOR="black"]KEYWORD[/COLOR]
    Code (markup):
    to

    http://www.domain.com/REQ/[COLOR="Black"]KEYWORD[/COLOR]
    Code (markup):
    My .htaccess looks like this:

    Options +Indexes
    Options +FollowSymlinks
    RewriteEngine on
    RewriteBase /
    RewriteRule ^REQ/(.*)/$ index.php?REQ=$1 [L]
    Code (markup):
    What am I doing wrong???
     
    BlueDevilMedia, Nov 14, 2007 IP
  2. Cheap SEO Services

    Cheap SEO Services <------DoFollow Backlinks

    Messages:
    16,664
    Likes Received:
    1,318
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Cheap SEO Services, Nov 14, 2007 IP
  3. BlueDevilMedia

    BlueDevilMedia Well-Known Member

    Messages:
    1,917
    Likes Received:
    87
    Best Answers:
    0
    Trophy Points:
    190
    #3
    You aren't rewriting you're just redirecting...

    redirect 301 /index.html http://www.domain.com/folder/500.cgi
    Code (markup):
    Change to 302 if the redirect is just temporary...also make sure you have a blank index.html file in the root directory.
     
    BlueDevilMedia, Nov 14, 2007 IP
    Cheap SEO Services likes this.
  4. Cheap SEO Services

    Cheap SEO Services <------DoFollow Backlinks

    Messages:
    16,664
    Likes Received:
    1,318
    Best Answers:
    0
    Trophy Points:
    0
    #4
    ahhhhh...that's much better....a big thank you! :)
     
    Cheap SEO Services, Nov 14, 2007 IP
  5. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #5
    Options +FollowSymLinks +Indexes
    RewriteEngine on
    RewriteBase /
    RewriteRule ^REQ/([^.]+)$ index.php?REQ=$1 [L]
     
    Nintendo, Nov 15, 2007 IP
  6. BlueDevilMedia

    BlueDevilMedia Well-Known Member

    Messages:
    1,917
    Likes Received:
    87
    Best Answers:
    0
    Trophy Points:
    190
    #6
    Still isn't working...forgot to mention its running on a subdomain I don't know if that changes anything.
     
    BlueDevilMedia, Nov 15, 2007 IP
  7. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #7
    Options +FollowSymLinks +Indexes
    RewriteEngine on
    RewriteBase /
    RewriteRule ^wacko\.html$ index.php [L]

    if xxx.domain.com/wacko.html doesn't show the index page, mess with the first line. If taking that out doesn't make it work, ask your web host.
     
    Nintendo, Nov 15, 2007 IP
    BlueDevilMedia likes this.