Forum Moderators: phranque

Message Too Old, No Replies

Question about Extensionless URLs

         

ssandecki

4:06 am on Sep 5, 2010 (gmt 0)

10+ Year Member



Sorry if this is a repeat question from a previous thread...

What is the proper .htaccess code to make php files extensions "with" the trailing slash? I know that the trailing slash should be removed to show the difference between a directory and a file; however due to my current situation I would like to leave on the trailing slash.

If possible, could you also include the proper 301 redirect for non-www urls to www urls along with index.php to the root domain; I'm not sure where they should be properly inserted into the htaccess file along with the extension less code to properly work.

g1smd

7:24 am on Sep 5, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



What code have you tried so far?

There's thousands of prior examples for inspiration.

g1smd

7:31 am on Sep 5, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



..

ssandecki

8:14 am on Sep 5, 2010 (gmt 0)

10+ Year Member



None yet, I'm using Wordpress currently and making all the pages static.