Can Mod rewrite change folder names??

Discussion in 'Apache' started by seobrien, May 1, 2008.

  1. #1
    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!!!
    ___________
     
    seobrien, May 1, 2008 IP
  2. Trusted Writer

    Trusted Writer Banned

    Messages:
    1,370
    Likes Received:
    52
    Best Answers:
    0
    Trophy Points:
    160
    #2
    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]
    
    Code (markup):
     
    Trusted Writer, May 4, 2008 IP