dubc07 Posted October 9, 2008 Share Posted October 9, 2008 Is there a way php can change the extension in the url to be your own? Get rid of the .php and put your own .fun let say index.php to index.custom Quote Link to comment Share on other sites More sharing options...
DarkWater Posted October 9, 2008 Share Posted October 9, 2008 Add a RewriteRule to your .htaccess like this: RewriteEngine On RewriteRule (.+?)\.custom $1.php Or play around with the Types in your httpd.conf Quote Link to comment Share on other sites More sharing options...
GingerRobot Posted October 9, 2008 Share Posted October 9, 2008 Find this line in your httpd.conf: AddType application/x-httpd-php .php And add this line: AddType application/x-httpd-php .fun If you dont want this extension used across your whole site, use a .htaccess file instead. Quote Link to comment Share on other sites More sharing options...
The Little Guy Posted October 9, 2008 Share Posted October 9, 2008 .htaccess: Options +FollowSymlinks RewriteEngine On RewriteBase / RewriteRule ^(.+).zig$ /$1.php [NC,L] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.