Help me to redirect 301

Discussion in 'Search Engine Optimization' started by Vebtools, Jul 14, 2010.

  1. #1
    Vebtools, Jul 14, 2010 IP
  2. flanagan

    flanagan Banned

    Messages:
    1,544
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    100
    Digital Goods:
    2
    #2
    You can search in google
     
    flanagan, Jul 14, 2010 IP
  3. Vebtools

    Vebtools Well-Known Member

    Messages:
    2,619
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    145
    #3
    i tried alot like

    Redirect 301 /olfpage.html www.myweb.com/newpage.html but it is not working
     
    Vebtools, Jul 14, 2010 IP
  4. social-media

    social-media Member

    Messages:
    311
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    35
    #4
    In the .htaccess in the root of your web add the following lines after the rewrite engine is set to ON and before the code inserted by WordPress:

    RewriteCond $1 hello/\.html [NC]
    RewriteRule (.*) http://www.example.com/hello.html [R=301,L]

    substituting "yourdomain.tld" for example.com above.
     
    social-media, Jul 14, 2010 IP
  5. sassyface78

    sassyface78 Peon

    Messages:
    57
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    sassyface78, Jul 14, 2010 IP
  6. Vebtools

    Vebtools Well-Known Member

    Messages:
    2,619
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    145
    #6


    I tried the following code

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond $1 real-inspiration/\.html [R=301,L] [NC]
    RewriteRule (.*) http://www.hulsestrength.com/real-inspiration.html [R=301,L]
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    and its work, when i added some more links like that, the page show SERVER error

    Internal Server Error

    And now it is no more working, even the code which worked
     
    Vebtools, Jul 15, 2010 IP