add

Wednesday, November 27, 2013

URL Rewriting apache


I have a better solution. I’ve decided to go a bit in details for those who need it. Take a look and read on.

# Apache Rewrite Rules
 <IfModule mod_rewrite.c>
  Options +FollowSymLinks
  RewriteEngine On
  RewriteBase /

# Add trailing slash to url
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5}|/|#(.*))$
  RewriteRule ^(.*)$ $1/
Read more

No comments:

Post a Comment