Forum Moderators: phranque

Message Too Old, No Replies

mod rewrite domain.com/folder/ to domain.com/folder

Remove the final forward slash?

         

Major Disaster

8:21 pm on May 31, 2008 (gmt 0)

10+ Year Member



Im wondering if anyone would be able to help me with the mod rewrite code to remove the final forward slash from an url:

eg.

[domain.com...] to [domain.com...]

Any help is much appreciated.

Thanks

g1smd

1:36 am on Jun 1, 2008 (gmt 0)

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



Is that the URL for a folder or an index file in a folder?

If it is, then the trailing / should be present, and Apache is most often set up to add it to requests where it is missing.