anyone have any idea how to do a mod rewrite to change php pages to html pages, its destroying my will to live at the minute..
Printable View
anyone have any idea how to do a mod rewrite to change php pages to html pages, its destroying my will to live at the minute..
Sure you don't want to ask our backend board? ;)
Fredi
hehe, spose so.
You want to parse html as PHP or have .html as extention in your url?
Both ways:
htaccess:
(can add some load to the server because all html is parsed as phpCode:AddType application/x-httpd-php .html
mod_rewrite:
Could need some rewrite depending on the situation.Code:RewriteEngine On
RewriteRule ^[a-zA-Z0-9]*)$.html $1.php
thanks Vincent, I'll try that