mod_rewrite for subfolder

Discussion in 'Apache' started by martinvidic, Apr 8, 2007.

  1. #1
    Hi.... I started reading mod_rewrite tutorials, but i think it will just take me a while to do this on my own... So i hope somebody con help me.

    I need a mod-rewrite that turns http://www.hgc-graz.com/flashmavi into http://www.flashmavi.com
    BEFORE SE WILL START INBDEXING THE WRoNG SITE....

    well... everything that has to be written into the .htaccess file.

    Pleeeeeeeeeeeeeeeeeease
    ...................
    Thaaaaaaaaaaaaaaaaaaaanx
     
    martinvidic, Apr 8, 2007 IP
  2. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #2
    Nintendo, Apr 9, 2007 IP
  3. martinvidic

    martinvidic Guest

    Messages:
    182
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanx for replying nintendo....

    The problem is that my hast doesnt give a good option for url masking...

    Only frame masking which i am not considering.
    hgc-graz.com/flashmavi doesn¨t have its own IP-address so i cannot create an a rocord.

    I was told i should use a http redirect and add a mod_rewrite...
    Or should it be a CNAME.... not sure...

    If you know hw to solve this problem...please tell me...

    The only option i have right now is transfering the domain to united-domains.de ( a german host who offers frameless SE friendly masking )

    Thanx.. MV
     
    martinvidic, Apr 9, 2007 IP
  4. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #4
    Now edit all the link so they don't for example link to

    hgc-graz.com/flashmavi/gymnastics.shtml

    as long as you have no links pointing to those types of URLs, search engines won't find it. Or, at hgc-graz.com/.htaccess

    Options +Indexes
    Options +FollowSymlinks
    RewriteEngine on
    RewriteBase /
    RewriteRule ^flashmavi/(.*)$ http://www.flashmavi.com/$1 [R=301,L]
     
    Nintendo, Apr 9, 2007 IP