htaccess rewrite help needed, url /123 to /123/
Currently we have rewrite configured to make urls like: /wallpaper/123 but would instead like the rewrite to /wallpaper/123/
Problem:
I need the existing links to be redirected properly from "/wallpaper/123" to "/wallpaper/123/"
Current htaccess:
Options +FollowSymLinks
Options -MultiViews
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^www.tvoioboi.com
RewriteRule (.*) http://tvoioboi.com/$1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
Any he开发者_开发知识库lp greatly appreciated.
Try something along the lines of...
RewriteRule (.+)[^/]*$ $1/
精彩评论