Collections:
Other Resources:
Transforming (Rewrite) URL with Apache Rewrite Rules
How to tell Apache server to transform (rewrite) URL?
✍: FYIcenter.com
1. Follow our Setting Up .htaccess tutorial to define .htaccess files on your Windows system.
2. Open in "notepad" Apache server configuration file at C:\Program Files\Apache Software Foundation\Apache2.2\conf\httd.conf
3. Find the rewrite_module line and un-comment it:
LoadModule rewrite_module modules/mod_rewrite.so
4. Add the following section to turn on rewrite logging. Very useful for debugging!
<IfModule rewrite_module> RewriteLog "C:/temp/rewrite.log" RewriteLogLevel 3 </IfModule>
5. Save httd.conf and restart Apache server.
6. Open C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\dot.htaccess. Add:
RewriteEngine on RewriteRule ^(.*)\.htm$ $1.html
6. Run a Web browser and enter http://localhost:8080/index.htm. You will see that the Apache server rewrites index.htm to index.html.
2006-12-09, 15052🔥, 0💬
Popular Posts:
What is service "wuauserv" and library "wuauserv.dll" on Windows Vista? "wuauserv" is a system servi...
What is the startup program "Intel Graphics Accelerator Helper - igfxtray.exe" on my Windows 8 compu...
How to get file properties in Windows PowerShell? I want to know when the file was originally create...
A collection of 24 tutorials on removing Windows startup programs to gain performance and reduce sec...
What Is Vundo Related vtsts.dll? 1. From www.bullguard.com/forum/ 8/DowloadTrojan-Virus-vt stsdll_1434...