htaccess 需要重写帮助,url /123 到 /123/
目前,我们已将重写配置为使网址如下:/wallpaper/123,但希望重写为/wallpaper/123/
问题:
我需要将现有链接正确地从“/wallpaper/123”重定向到“/wallpaper/123” /”
当前 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]
非常感谢任何帮助。
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 help greatly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试一些类似的事情......
Try something along the lines of...