开发者

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/
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜