MyBB Community Forums

Full Version: Is there a way to remove the .php exstention?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
DennisTT Wrote:Some servers allow you to do it automatically, for example:
http://www.dennistt.net/forum/showthread...d=28#pid28

But then again, you must find all instances of .php in all the links in templates/code and delete them

Indeed, I'd like to share my .htaccess entry for that. I hope there is a way to replace all the entries of showthread.php to my new URL because I dont want to miss stuff and break it all up. Would it be possible to write a script or something for that?

Here it is:
RewriteEngine On
RewriteRule ^showthread/(.*) forums/showthread.php?tid=$1

This allows you to use http://mysite/showthread/35. You do need to change the forums to your forums directory and be sure to place it in your www root (usually public_html).
Pages: 1 2