Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Add trailing slash to URL
#1
I'm a newbie in web-development
How can I modify .htaccess file so that to add trailing slash to every URL?
http://www.site.com/about/ instead of http://www.site.com/about

My .htaccess file looks like:
Code:
AddDefaultCharset UTF-8
RewriteEngine on

RewriteBase /getsimple/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule /?([A-Za-z0-9-]+)/?$ index.php?id=$1 [L]
Thanks in advance.
Reply
#2
This article should help. There is a bit of concern from some of the threads I've read on this topic about duplicate content issues, but I don't think there is too much to worry about.
http://enarion.net/web/apache/htaccess/trailing-slash/
Pixelita Designs
http://www.pixelita.com
Visit Serbia's biggest and best internet forum!
http://www.burek.com
Reply




Users browsing this thread: 1 Guest(s)