Forum Moderators: phranque
now that url above used a RewriteRule but I have changed it to (in htaccess
RewriteRule ^Free\-([0-9a-zA-Z\-_]+)\-([0-9a-zA-Z\-_]+)\-Themes/([0-9a-zA-Z\-_]+)/([0-9]+)/([0-9]+)/$ htaccess_thm_listing.php?m=$1&mod=$2&c=$3&o=$4&pg=$5 [L]) and that works if I type in (www.mysite.com/Free-Nokia-6600-Themes/Abstract/1/1/)
what I want to do is a 301 on the old style url so that the new url looks like this (example www.mysite.com/Free-Nokia-6600-Themes/Abstract/1/1/) but in order to do this I have to create a RewriteRule to redirect to the current RewriteRule (make sence?) and I have been trying for hours with no luck what so ever, I just keep getting intrnal server error (testing on home server before going live on the net)
is this possible? can it be done? below is the last effort I tried to get this to work (and failed of course)
RewriteRule ^Free\-Themes/[0-9a-zA-Z\-_]+)/[0-9a-zA-Z\-_]+)/[0-9a-zA-Z\-_]+)/([0-9]+)/([0-9]+)/$ Free\-$1\-$2\-Themes/$3/$4/$5/$ [R=301,L]
I would be greatfull for any help on this matter
thanks in advance
I now feel stupid as I have been at this for hours only to now find out that it would have worked no problem if I had actualy typed it in corectly :-(
just wanted to let you know so people didnt spend time on trying to figure out why it didnt work.
I do have one last question though, is the final part of the RewriteRule correct? im reffering to this [R=301,L] I have noticed that there are other options such as N and wanted to know that im using the correct code
thanks in advance
RewriteRule ^Free-Themes/[0-9a-z\-_]+)/[0-9a-z\-_]+)/[0-9a-z\-_]+)/([0-9]+)/([0-9]+)/$ Free-$1-$2-Themes/$3/$4/$5/$ [NC,R=301,L]
Jim
once again thank you for the help
wayne