Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

htaccess

Status
Not open for further replies.

zura

Technical User
Sep 20, 2011
23
GE
Hi!
How to trim the file name in the address bar?
For example, the
is:
Code:
[URL unfurl="true"]http://test.com/index.php[/URL]
[URL unfurl="true"]http://test.com/registration/page.php[/URL]
needed:
Code:
[URL unfurl="true"]http://test.com[/URL]
[URL unfurl="true"]http://test.com/registration/[/URL]

Thank you for your help.
 

htaccess is an webserver configuration, and what you are asking is called mod_rewrite most commonly found in Apache webservers.

This is unrelated to PHP, so I suggest you ask this in forum65.

Or in the forum devoted to the webserver you are using.

----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.

Web & Tech
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top