Add a trailing slash mod_rewrite
- by Conner Stephen McCabe
just wondering how I add a trailing slash at the end of my URL's using Mod_Rewrite?
This is my .htaccess file currently:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^/]*)$ index.php?pageName=$1
My URL show like so:
wwww.**.com/pageName
I want it to show like so:
wwww.**.com/pageName/
The URL is holding a GET request internally, but I want it to look like a genuine directory.