Greenguy's Board

Greenguy's Board (http://www.greenguysboard.com/board/index.php)
-   Newbie Questions (http://www.greenguysboard.com/board/forumdisplay.php?f=5)
-   -   PHP Static? (http://www.greenguysboard.com/board/showthread.php?t=23004)

juggernaut 2005-08-14 03:03 PM

PHP Static?
 
Ok I read here the other day there is a way to pay PHP pages look static to SE, can anyone point in a direction as to how?
Thanks

Lemmy 2005-08-14 05:09 PM

I think this is what you need.

http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html

juggernaut 2005-08-14 05:13 PM

Cool thank you.

Halfdeck 2005-08-14 08:15 PM

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]

juggernaut 2005-08-14 09:58 PM

Thanks Dude just what I needed.


All times are GMT -4. The time now is 07:27 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc