Page 1 of 1

htaccess

Posted: Sat Mar 03, 2012 12:47 pm
by zura
Hi!
How to trim the file name in the address bar?
For example, the
is:

Code: Select all

http://test.com/index.php
http://test.com/registration/page.php
needed:

Code: Select all

http://test.com
http://test.com/registration/
Thank you for your help.

Re: htaccess

Posted: Sat Mar 03, 2012 12:51 pm
by requinix
Use DirectoryIndex.

Code: Select all

DirectoryIndex index.php page.php
(index.php should already be a default but it doesn't hurt to say it again.)

Re: htaccess

Posted: Sat Mar 03, 2012 1:43 pm
by zura
???
sorry.
???

Re: htaccess

Posted: Sat Mar 03, 2012 2:25 pm
by requinix
Sorry... what?

Re: htaccess

Posted: Sun Mar 04, 2012 2:51 am
by social_experiment