Lorem Ipsum
Free dummy text generator
Lorem Ipsum

Htaccess redirects

Search Engine Optimization Tools


ASCII Characters

Client Information
New File Extension htaccess redirect
If you change all or some file extensions on your web site, for example from .asp to .php or from .html to .php you probably want to redirect your visitors to the new pages with new extensions.

If so you need to add the following code to your htaccess:

RedirectMatch 301 (.*)\.html$ http://www.example.com$1.php

The code example above will redirect all requests for html files/pages to the corresponding php extension pages/files. This means your visitors will automatically be redirected to domain.com/home.php instead of domain.com/home.html.

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 (.*)\.html$ http://www.example.com$1.php

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


Web lorem.biz