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.
![Nextgen Hosting Nextgen Hosting](/assets/img/logo.png)
- Domains
-
Hosting
- Shared HostingThe easiest and most affordable way to start and grow your website. Take your online presence to the next level with our shared hosting plans.
- WordPress HostingA fast, reliable, and secure way to power your WordPress website.
- Reseller HostingEarn some cash and manage multiple websites with ease using WHM. Start your own web hosting service with Nextgen's white label premium hosting!
-
Servers
- VPS HostingPowerful cloud VPS hosting with dedicated resources & easy scaling.
- Cloud VPSLightning-fast Cloud Servers with root access, SSD storage, blazing-fast network and scalability.
- Dedicated ServersGet industry-leading hardware at an affordable dedicated server price.
- Game ServersHigh performance game servers, with minimal ping at lowest prices.
- Security & Tools
- Company
- Support
- CMS
- Login