Jump to content

For programmers:adding a trailing slash automatically in urls


Recommended Posts

Posted

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

  • Meta
Posted
This forum is only for questions related to DMOZ. Although there might be someone capable of answering this question I advice you to ask this question in a forum fom webmasters.

I will not answer PM or emails send to me. If you have anything to ask please use the forum.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...