Can someone help me with 301 redirection code ?

Discussion in 'Apache' started by sourcer, Oct 29, 2006.

Thread Status:
Not open for further replies.
  1. #1
    I tried to add 301 to my website for ( sourcer.org to www.sourcer.org and index.php to www.sourcer.org ) and here is what i got :

    Here is the code that i put in .htaccess

    What is wrong ?

    Notice that i am using WP
     
    sourcer, Oct 29, 2006 IP
  2. e_hippie

    e_hippie Guest

    Messages:
    32
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Well, I may not 100% be the person to ask, as I ended up with similar results when trying to perform the same index.php redirect. But first off, I notice that you have duplicate code in repeating the "Options +FollowSymLinks" and
    "RewriteEngine on" commands. In any case, try dropping the content below the "RewriteRule ^(.*)$ http://www.sourcer.org/$1 [L, R=301]" line and I'll bet you at least get a site that always redirects to the www. version.
     
    e_hippie, Oct 30, 2006 IP
Thread Status:
Not open for further replies.