Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other .htaccess and old page direction question

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #40120
    JoshWhite
    Member

    Hey I was wondering if this is the best way to go about this if anyone has had experience in this area.

    Scenario – a client of mine bought a domain from someone else. New website is built and most pages remained the same, however we’re seeing 8 or 9 links remaining that are still showing up as 404 errors.

    My first thought was to use htaccess to 301 direct them. I’m definitely not an .htaccess guru so I was looking at the code snippets. Would we just use what’s there for the 9 links?

    Redirect 301 /oldpage.html http://www.yoursite.com/newpage.html
    Redirect 301 /oldpage2.html http://www.yoursite.com/folder/

    Or something more like this to redirect everything??

    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^www.oldsite.com$ [NC]
    RewriteRule ^(.*)$ http://www.newsite.com/$1 [R=301,L]

Viewing 1 post (of 1 total)
  • The forum ‘Other’ is closed to new topics and replies.