Lorem Ipsum
Free dummy text generator
Lorem Ipsum

Htaccess redirects

Search Engine Optimization Tools

Miscellaneous

ASCII Characters

Client Information
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
RewriteEngine on
RewriteRule (.*) http://www.new-domain.com/$1 [R=301,L]

This alternative htaccess redirect code will redirect all the visitors from olddomain.com/whatever to new-domain.com/whatever so there will be no need to redirect all the pages individually.

See more examples of htaccess redirects in the menu on the left or below.




Start | Lorem Ipsum dummy text | Lorem Ipsum source

Simple Page | Simple Folder | New Start Page | New File Extension | Non-www to www-domain | www to non-www-domain | Old Domain to New Domain

Keyword Suggestion Tools | Keyword Density Tools | Keyword Tracking Tools | Backlink Tools | Duplicate Content Check | Search Engine Saturation Tools | Search Engine Simulator Tools | Google PageRank Check | Yahoo WebRank Check | Meta Tag Generator | Robots Generator | Domain Statistics Tools | Website to Country

Word and Letter Count Tool | HTTP Status Codes

ASCII table | Extended ASCII | HTML Codes

My IP Address | My screen resolution | My color depth | My operative system | My web browser




Search

Web lorem.biz