| 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 |
| 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. |
| Search |