Thread: PHP Static?
View Single Post
Old 2005-08-14, 08:15 PM   #4
Halfdeck
You can now put whatever you want in this space :)
 
Halfdeck's Avatar
 
Join Date: Oct 2004
Location: New Haven, CT
Posts: 985
Send a message via ICQ to Halfdeck
In case your still wondering, I insert this into my .htaccess file:

# Enable PHP in HTML files

RemoveHandler .html .htm
AddType application/x-httpd-php .php .htm .html

EDIT: Oops, looks like I jumped the gun. I guess you're wondering how to make index.php?pxd=2300&... look like /2300/index.html.

For that, I use something like this:

RewriteEngine on
RewriteRule ^([0-9a-z]*)/([0-9a-z]*)/$ /xxx.php?xid=$1&code=$2 [L]
__________________
Success is going from failure to failure without a loss of enthusiasm.
Halfdeck is offline   Reply With Quote