Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!
Moderator: General Moderators
-
j4IzbInao
- Forum Newbie
- Posts: 9
- Joined: Tue Oct 14, 2008 6:07 am
Post
by j4IzbInao »
Code: Select all
Rewriterule ^mens/item/(.*)/(.*)/(.*)/(.*)$ mens-item-($1)-($2)-($3)-($4).html [R=301, NC, L]
Should do the trick.
-
pickle
- Briney Mod
- Posts: 6445
- Joined: Mon Jan 19, 2004 6:11 pm
- Location: 53.01N x 112.48W
-
Contact:
Post
by pickle »
j4IzbInao wrote:Code: Select all
Rewriterule ^mens/item/(.*)/(.*)/(.*)/(.*)$ mens-item-($1)-($2)-($3)-($4).html [R=301, NC, L]
Should do the trick.
Close, but that'll put parentheses in the forwarded URL.
Code: Select all
Rewriterule ^mens/item/(.*)/(.*)/(.*)/(.*)$ mens-item-$1-$2-$3-$4.html [R=301, NC, L]
should do it.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.