Written by me@grafxflow
01 Oct, 2012
0
3,225
Have you ever created a new website for a client and needed to forward old url pages to their new urls, in order to update google and the other search engines.
www.your_website.com/your_old_page.html
to
www.your_website.com/your_new_page.html
Based on the above information, edit the .htaccess file add the following:
redirect 301 /your_old_page.html http://www.your_website.com/your_new_page.html
Things to note are the old page doesn't need to be the full url address, but the new page does.
Here is another example which forwards the whole contents of a folder to a new url.
www.your_website.com/forum/
to
www.your_website.com/blog/
RewriteRule ^forum/(.*) http://www.your_website.com/blog/ [R=301,L]
01 Jan, 2011
05 Jul, 2009
12 Jan, 2014
Darth Maul and Micro-Organisms: Inside George Lucas's Cancelled Star Wars Sequel Trilogy
How to Automatically Convert DVD Subtitles to SRT on Mac
The $4 Billion Divorce: Inside the Awkward, Painful Sale of Lucasfilm to Disney
The Rift That Broke the Whip: Inside Lucas, Spielberg, and Harrison Ford's 'Furious Rows' Over Indiana Jones
Breaking the Endless Loop: Why Star Wars Needs an Origin Story
Founder, Grafxflow
I am a Full-stack Developer who also started delving into the world of UX/UI Design a few years back. I blog and tweet to hopefully share a little bit of knowledge that can help others around the web. I build lighting-fast dynamic content engines with Laravel, Winter CMS and Tailwind CSS. Thanks for stopping by!