sitNsmile
11-30-2010, 04:37 PM
I want to redirect a dynamic URL. Using this overwrite. But I need some advice of changes since I've yet to do much in regex
redirect 301 ^folder/([^/.]*)/?/([_A-Za-z0-9-]+).html/?$ http://www.domain.com/newFolder/$1/$2.html
or even if possible taken the actual domain and redierctly a quick URL change, all I want, is if its this "/folder/" make sure the url shows "/newFolder/"
(main use is for SEO to know that the URL has just been moved to this new folder, but I dont want to change the $1 and $2 variables of data, the URL must be as identical to the user, just a folder switch. I've seen this on websites, where they instantly make the URL change among countries ..etc
Pretty much the same as a statement that would print out as if (dir=folder) dir = newFolder, but printing as regex is concerned, I dont have much of an idea how to put
(its easy to do something like this Redirect 301 /dir/ http://www.example.com/newdir/ but I want to still keep the entire URL intact)
Thank You.
redirect 301 ^folder/([^/.]*)/?/([_A-Za-z0-9-]+).html/?$ http://www.domain.com/newFolder/$1/$2.html
or even if possible taken the actual domain and redierctly a quick URL change, all I want, is if its this "/folder/" make sure the url shows "/newFolder/"
(main use is for SEO to know that the URL has just been moved to this new folder, but I dont want to change the $1 and $2 variables of data, the URL must be as identical to the user, just a folder switch. I've seen this on websites, where they instantly make the URL change among countries ..etc
Pretty much the same as a statement that would print out as if (dir=folder) dir = newFolder, but printing as regex is concerned, I dont have much of an idea how to put
(its easy to do something like this Redirect 301 /dir/ http://www.example.com/newdir/ but I want to still keep the entire URL intact)
Thank You.