Forum Moderators: phranque

Message Too Old, No Replies

URL final slash

         

discosyao

4:52 am on Jan 14, 2004 (gmt 0)

10+ Year Member



I set up a bit torrent tracker, but when I enter the adress in the bittorent client, it always add a slash to the tracker normal url.

So tracker.php become tracker.php/
and my host makes a 404 error when we add another slash.

Si I want to know if its possible to make a script or access file so that my website accept a slash at the end of the url.

wwWebmasterWorldebsite.com/tracker.php <---- OK
wwWebmasterWorldebsite.com/tracker.php/ <-----404 error, I want the server to accept the slash

Sorry if Im not clear, Im not really good in english.

pete_m

11:04 am on Jan 14, 2004 (gmt 0)

10+ Year Member



If you are using Apache as your webserver you can use mod_rewrite to change ".php/" to ".php". Have a look at this topic [webmasterworld.com]

Or you could create a new directory called "tracker", copy tracker.php into the new directory and rename it index.php
Any requests for "example.com/tracker" will change to "example.com/tracker/", which should work.

I'm not familiar with BitTorrent, so changing the filenames may not be an option.

discosyao

1:21 pm on Jan 14, 2004 (gmt 0)

10+ Year Member



thanks. Im not so ffamiliar with apache.
Ill try the rename thing :)

g1smd

3:30 pm on Jan 22, 2004 (gmt 0)

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



Did you get it working?