Jump to content

[SOLVED] Dynamic Extention


The Little Guy

Recommended Posts

Maybe this isn't the best way (if there is a better way let me know)

 

I am trying to make it so all extensions relate to a php extension, so for example

http://site.com/index.html

http://site.com/index.htm

http://site.com/index.asp

http://site.com/index.jsp

 

The above should all relate to http://site.com/index.php

 

Doesn't work:

RewriteRule (.*)\.(htm|html|asp|jsp|cgi) $1.php

 

Works

RewriteRule (.*).htm $1.php

Link to comment
https://forums.phpfreaks.com/topic/136297-solved-dynamic-extention/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.