Best Server Hosting & Managed IT Company Since 2016

How to redirect a page to another page or website using .htaccess?

If a page on your website no longer exist and you want to redirect it to your new page or website then you can use the .htaccess file for redirection without waiting.

Redirect from a page/directory to another domain or the main domain:
Redirect from a specific page to a domain:
RewriteEngine on
Redirect 301 /mypage.html http://example.com

Redirect from a page to another page:
Redirect from a page/directory to another page
Redirect 301 /oldpage.html /newpage.html

Now, whenever you open the url example.com/oldpage.html, it will automatically redirect you to example.com/newpage.html.

About the Author
Medha Hosting

Medha Hosting ( a Medha Cloud company ) is the leading global Cloud, Managed hosting and managed IT services provider with award winning platforms in USA, Europe and Asia. Medha Hosting have delivered enterprise-level hosting services to businesses of all sizes round the world since 2014 and still serve a growing base of customers. They relay heavily on our 100 percent up time guarantee, unbeatable level of client service through our triumph Support Heroes, and world reach with half-dozen data centers across five regions in Europe, US, and Asia.we have a tendency to integrate the industry’s best technology to supply you better of breed cloud hosting solutions, all backed by our triumph Support Heroes.

Leave a Reply