mod_rewrite entire directory? possible? Need a pro.

Discussion in 'Apache' started by HighRankingSEO, Jul 9, 2009.

  1. #1
    Hey, just browsing around and I am familiar with mod_rewrites and sort of how they work...I know what they do, I should say. Anyway, I would like to know if it is possible to rewrite a url from a directory, for example:

    Can I rewrite this with a rule:
    mysite.com/SUPER/ROCKIN/COOL/AWESOME/whatever.html

    to this:

    mysite.com/COOL/AWESOME/whatever.html

    (REWRITE OUT THE SUPER AND ROCKIN WITHOUT REMOVING THE DIRECTORIES)

    I feel like this is possible, maybe not...I don't know. I would appreciate any help. Also, if this is possible, anyone have the general rules I would write/follow to make this happen.

    SOME ADDITIONAL INFO:
    ASSUME THAT "ROCKIN" AND "SUPER" ARE DIRECTORIES THAT CANNOT BE MOVED/DLETED/ETC....


    Thanks for all the help.
     
    HighRankingSEO, Jul 9, 2009 IP
  2. HighRankingSEO

    HighRankingSEO Well-Known Member

    Messages:
    423
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    125
    #2
    Anyone at all out there know? Please help.
     
    HighRankingSEO, Jul 11, 2009 IP