SEOCentro
Are you looking for a SEO company? Search SEO Blogs Archive:

Search SEO Posts Last 14 Days





Redirect relocated urls with mod rewrite

(Page 3 of 6)

Sometimes you need to relocate your pages, but you want to recapture PageRank/link popularity, ranking, and retain visitors who might be lost by an unexpected 404 (Not Found) error code. The only way to save your rankings and visitors is to redirect the old urls to the new urls.
RewriteEngine On
# Redirect relocated urls to the new direction
RewriteRule ^oldpage\.html$ http://www.example.com/newpage.html [R=301,L]
RewriteRule ^directory/oldpage\.html$ http://www.example.com/directory/newpage.html [R=301,L]
When you need to relocate a directory and all the files in it to a new directory.
# Redirect relocated directories to the new directories
RewriteRule ^olddir/(.*) http://www.example.com/newdir/$1 [R=301,L]

NEXT » Redirect non existing inbound links with mod rewrite



Article Index
1. Use mod rewrite for SEO purposes

2. Avoiding duplicate content with mod rewrite

3. Redirect relocated urls with mod rewrite

4. Redirect non existing inbound links with mod rewrite

5. Search Engine friendly urls with mod rewrite

6. mod rewrite for SEO purposes put together

Featured Sponsors




















Sponsor SEOCentro

SEO Services
Latest SEO & Search Engine News
Latest seo and search engines blogs news for to stay up-to-date in the search engines marketing world.

Search Engine Optimization Tools
Online search engine tools, made available to help our visitors with their search engine strategy.