Forum Moderators: phranque

Message Too Old, No Replies

Quick htaccess Question

         

RedChair

5:03 am on Apr 16, 2007 (gmt 0)

10+ Year Member



I am wondering how I can make htaccess automatically rewrite the URL to add a '/' to the end if the user doesn't type one in. I have my rewrites set up to add the slash and everything is fine with the search engines but I don't want someone to type an address in and forget the slash and get an error page.

Thanks for your help.

jdMorgan

1:09 pm on Apr 16, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Check your server configuration. Apache's mod_dir should do this automatically. If it's not installed, have a talk with your host.

Failing that, try a search [google.com] here on WebmasterWorld for "trailing slash rewriterule' to view the dozens of previous threads with code and discussion.

Jim

RedChair

2:40 am on Apr 17, 2007 (gmt 0)

10+ Year Member



Thanks for your help!