adding a trailing slash automatically in urls

Discussion in 'Apache' started by sarathy, Dec 6, 2005.

  1. #1
    Hi palz.,
    How do i add a trailing slash to all my urls using mod rewrite.,

    like for example.,
    in our site
    mydomain.com/business-india/1 will not work and will show a 404 page
    but
    mydomain.com/business-chennai/1/ will work
    There are thousands of urls like this in our site.

    So if any user types:
    mydomain.com/business-chennai/1 directly , it will show them a 404 page not found error.


    Would be really grateful for any help :)

    Thanks
    Sarathy.s
     
    sarathy, Dec 6, 2005 IP