Home Insurance - Online Loans - Free Advertising - Mortgages - Problem Mortgage

PDA

View Full Version : Can Mod rewrite change folder names??


seobrien
May 1st 2008, 9:37 am
I don't have parameter based URLs but I'm desperate to figure out how to simply change folder names from their default.

Consider: 2 different domains hosted by the same platform; each with unique content but, being powered by the same platform, they have to follow the same URL Structure.

http://www.site.com/category/place/file.html

http://www.secondsite.com/category/place/file.html

Because of the demographic of the second site, I need to get the URLs changed to something more user friendly

http://www.site.com/category/place/file.html

http://www.secondsite.com/section/location/page.html

Will a mod rewrite do this?

If not, is there any solution??

Thanks!!!
___________

Trusted Writer
May 4th 2008, 1:44 pm
I'm not sure if I understand what you want because we are talking about two different websites but I would try walking around this (untested) rule:


RewriteCond %{REQUEST_URI} ^/category/place/file.html [NC]
RewriteRule ^(.*) http://www.secondsite.com/section/location/page.html [R=301,L]