If a page on your website no longer exists and you want to redirect it to a new page or website, you can use the dot htaccess file to redirect visitors.
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 one page to another page:
#Redirect from a page/directory to another page
Redirect 301 /oldpage.html /newpage.html
Whenever you open a URL such as example.com/oldpage.html, it will redirect you to example.com/newpage.html.
-
Shared Hosting
- Web Hostinghe easiest and most affordable way to start and grow your website.
- Unlimited HostingNewExperience true freedom with unmetered disk space and bandwidth to grow your website.
- Business HostingAvail your web applications of more CPU cores and PHP Memory to power your Business and Portal Websites.
- SSD HostingHigh performance SSD hosting to turbo charge your website for faster website loading time.
- Plesk SSD Hostingcoming soonThe easiest and most affordable way to start and grow your website.
- Business SSD HostingHigh performance SSD hosting with additional RAM and CPU allowance for resource intensive web applications.
- Servers
- Domains
- Support
- Login