The Little Guy Posted December 10, 2008 Share Posted December 10, 2008 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 More sharing options...
The Little Guy Posted December 10, 2008 Author Share Posted December 10, 2008 RewriteRule ^(.*).(htm|html|asp|jsp|cgi)$ $1.php Instead of plunging in all types could I do it so it does everything? Link to comment https://forums.phpfreaks.com/topic/136297-solved-dynamic-extention/#findComment-711070 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.