| Lorem Ipsum |
|
Start Lorem Ipsum Dummy Text Lorem Ipsum source |
| Htaccess redirects |
|
Simple page Simple folder New File Extension Non-www to www-domain www to non-www-domain Old domain to new domain |
| Miscellaneous |
|
Word and Letter Count Tool HTTP Status Codes |
| ASCII Characters |
|
ASCII table Extended ASCII HTML Codes |
| Client Information |
|
My IP Address My Screen Resolution My Color Depth My Operative System My Web Browser |
| Old domain to new domain htaccess redirect |
|
If you have bought a new domain or want to redirect all
traffic to an old domain to a new domain this can be done with
a htaccess redirect. Below is a htaccess redirect that will redirect all traffic to an old domain with all its files and subfolders to a new domain (www.new-domain.com). RedirectMatch 301 ^(.*)$ http://www.new-domain.com/ The code example above will redirect all traffic to an old domain with all its files and subfolders to www.new-domain.com.301 means you redirect the page permanently. If it is a temporary redirect (that is a 302 redirect), remove 301 from the code. The code will then look like this: RedirectMatch ^(.*)$ http://www.new-domain.com/ Alternatively you can use this htaccess redirect code:
Options +FollowSymLinks See more examples of htaccess redirects in the menu on the left or below. |
| Search |