Or you can do 301 redirect if you want it be permanent using .htaccess file. Create blank file and name it .htaccess if you don't have one already. Insert following code to .htaccess file and put it in your root folder.
Html redirect code This is the one auto-redirecting method that the engines can automatically detect, or so it is believed. It is also the one method that the engines are perfectly happy with as long as there is a reasonable delay between landing on a page and being redirected from it.
The problem I was having with doing a simple 301 redirect from index.php to the canonical URL is that apache treats both those requests as the same thing. A request to www.seomoz.org is treated as a request to index.php because they're both using the same file. This resulted in apache infinitely redirecting index.php to itself.
The server receives the index.php file request and wants to inform the client that it’s no longer available or moved somewhere else, and it should look to a new file instead: new_index.php. The server sends the Location header with a new URL along with the 301 or 302 HTTP code.
Redirect an Index page to / Depending on the type of home page you have (index.html or index.htm or index.php) it should be redirected to the directory only. To create an HTML redirect page, you use the HTML meta tag, along with the 'http-equiv' and 'content' attributes. Redirect code. To create an HTML redirect, place the following code between the document's head tags. PHP provides the HTML redirect features with header() function. Actually header() function will insert HTML meta tag into the HTTP response. header() usage is very simple where we just provide the Location: with the URL we want to redirect.
- sites de torrent de jeux gratuits pour pc
- how to start apple tv
- comment ajouter lexode à kodi android
- final cut pro price australia
- cache kodi plein avant datteindre la quantité requise
- netgear wireless router wgr614v9
- ported to android
- private internet access openvpn linux
- comodo wiki
- yupptv ne fonctionne pas sur samsung tv
- configure private internet access for utorrent