Forum Moderators: phranque

Message Too Old, No Replies

redirect to index.php

with mod_rewrite

         

alexis

7:28 pm on Jan 11, 2005 (gmt 0)

10+ Year Member



Here is what I want: Anytime someone accesses a url that ends with a word that contains no dot, the page brought up is htdocs/index.php

for example:
[mysite.com...] does not actually show the index.php file contained in htdocs/news/article/big_event_for_christmas/ but rather the one that is located directly in htdocs/

Is that possible? if so, how?

jdMorgan

12:36 am on Jan 12, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



alexis,

Welcome to WebmasterWorld!

Yes, it's possible. Please see our charter [webmasterworld.com] for some documentation to get you started, and some information about what we do in this forum.

Jim

alexis

4:46 pm on Jan 12, 2005 (gmt 0)

10+ Year Member



Yes I understand and agree with this way of managing a forum.

The question I asked has been simplified to the bare minimum so that, combined with a simple answer, it becomes a reference for those who want to get started with this matter.

That's how I learn from threads that have already been answered and I was expecting to start a thread of this nature.

If you do not want to answer the question please delete it and email me so I can write it again in a format more suitable for webmasterworld.com.

alexis

8:39 am on Jan 31, 2005 (gmt 0)

10+ Year Member



Getting started with mod_rewrite:

If you want to get started with mod_rewrite here is a great tutorial / article [workingwith.me.uk...]

The first example is plain simple. So simple that this is what made me realize that mod_rewrite was not enabled on my Apache. then I got started.