Forum Moderators: coopster

Message Too Old, No Replies

URLs with no extensions

         

defanjos

8:02 pm on Apr 25, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I have to recreate a site exacly, but the urls do not have extensions. How can I have a site with the urls without extensions? For example, the pages need to be like www.example.com/widgets, www.example.com/redwidgets, etc.

The thing is, if you enter www.example.com/widgets/, it gives a 404 error, so it is not a directory.

Is this done with mod_rewrite?

Thanks

Receptional Andy

8:08 pm on Apr 25, 2008 (gmt 0)



Most commonly, this is achieved with either mod_rewrite or via Apache's content negotiation features. There are a few less robust methods using a server-side scripting language only. Mod_rewrite is probably the preferred mechanism.

defanjos

9:19 pm on Apr 25, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thank you
I think I'll try mod_rewrite

Receptional Andy

9:28 pm on Apr 25, 2008 (gmt 0)



There are a few posts already on the forum for mod_rewrite and removing file extensions [google.com].

I had to rewrite that search several times, for no reason other than Google's desire to obfusticate results. All I ask is you play fair, Google!