removing a trailing slash from a filename (index.php/to index.php)

Posted by Steve on Server Fault See other posts from Server Fault or by Steve
Published on 2010-06-17T12:58:47Z Indexed on 2010/06/17 13:03 UTC
Read the original article Hit count: 242

Filed under:
|

Hi,

I'm sure I'm missing a trick here but I can't work out how to remove the trailing slash from a file name in a URL.

My URL would be something like this:

www.mysite.com/dynamic_folder_name/index.php/

I need the URL to become

www.mysite.com/dynamic_folder_name/index.php

Any help would be appreciated.

Cheers

© Server Fault or respective owner

Related posts about php

Related posts about .htaccess