User Login
Latest Technology Articles
- PCinvent Studio Programming Solutions
- Fedora Core 12 YumEx Problem
- VMware Guest Wide Screen Resolution Problem
- DD-WRT Router Firmware
- OpenVPN AS Client Installation Problem Fix
- Redhat Yum problem
- File Server Solution
- Old C++ Project of ATM Machine
- My Research and Project of the Reversed Array List (Reversed Index Array List)
- My Research of Linear Data Structure
| 301 Redirection, Add www to the site URL |
|
|
| Thursday, 08 May 2008 | |
|
One of my sites had a problem on AJAX search while the user is typing the site without www, so I made a solution here. here is the tips that you can always redirect all url requests to have www. as a fixed prefix by having .htaccess file in the site root. Also, it is a good practice that search engine will treat the both url (with and without www) as the same. Hence, the spider process will go more smooth. (SEF) ......
Create a file called ".htaccess" in site root. Inside the file (change YourSiteUrl to your real URL):
Now it should be prefect that when people type YourSiteUrl.com or YourSiteUrl.com/somewebpage.htm, it will automatic redirect it and add www. to it in no time.
Comments (0)
![]() Write comment
Tags: Technology Website 301 Redirection Add www to the site URL Add www Redirect Redirect 301 moved permanently SEF |
|
| Last Updated ( Sunday, 18 May 2008 ) |
| < Prev | Next > |
|---|







