tags:

views:

19

answers:

1

Hi,

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.

A: 

Try something along the lines of...

RewriteRule (.+)[^/]*$ $1/
henasraf
Thank you very much, I fixed it based on your comment with:RewriteRule ^wallpaper/(.[^/]+)$ /wallpaper/$1/ [R=301,L]
aweome, good luck ;)
henasraf