mendoz Posted May 24, 2008 Share Posted May 24, 2008 Konichiwa freaks Here is my .htaccess <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /guitar/ RewriteRule ^catalog/ /guitar/dir/catalog.php [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d #wordpress RewriteRule . /guitar/index.php [L] The thing is: I want mysite.com/catalog/category to become mysite.com/catalog/category/ This shouldn't be much of an issue, right? Thanks! Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted May 24, 2008 Share Posted May 24, 2008 Add the following: RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_URI} !(.*)/$ RewriteRule ^(.*)$ http://yoursite.com/$1/ [R=301,L] at the top of your .htaccess after RewriteEngine On. Change yoursite.com to your website address. This will check to see if the url ends in a / if it doesn't it'll add it in. Quote Link to comment Share on other sites More sharing options...
mendoz Posted May 24, 2008 Author Share Posted May 24, 2008 Thanks my friend, this worked: RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_URI} !(.*)/$ RewriteRule ^(.*)$ $1/ [R=301,L] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.