|How can I redirect a visitor to another page?|
How can I redirect a visitor to another page?You can use .htaccess to automatically redirect a visitor to another location, for example when you have a new website, or if your site is still under construction.
In this guide you can find a description of some of the most commonly used functions and how to implement them on your web space at One.com.
Tip: If you want to redirect your whole website to another domain or ip-address, we recommend using DNS instead.
Redirect 301You can permanently redirect your visitors to another location, this is called Redirect 301.
The number 301 stands for the http status code. Adding the number 301, tells search engines that the address has permanently moved to another location, consequently your page ranking will also be moved.
Redirect to www.yourdomain.comYou might want to do this to improve your search engine ranking. Search engines recognize www.yourdomain.com and yourdomain.com as two different pages, it is better if only one page is used.
Redirect to yourdomain.comSimilar to redirecting to www, but the other way around. It serves the same purpose.
Rewrite everything to HTTPSIf you have activated SSL on your web space you can rewrite all traffic to https://. That way you can make sure that your visitors only use a secure connection. If you only want to redirect to https:// in certain folders on your site, you can add the .htaccess file to that specific folder.
|This resource belong to this community unless differently stated.|
No reproduction possible without our agreement, in accordance with article L122-1 of the CPI.