Redirect URL via htaccess

Discussion in 'Apache' started by kailash, Jul 12, 2008.

  1. #1
    kailash, Jul 12, 2008 IP
  2. hostrs.com

    hostrs.com Peon

    Messages:
    157
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    How about
    But im not sure if it works for remote domains. Haven't tried.
    Mod rewrite will make one page look as if was another page. Example:
    http://domain.com/link.html will actually be link.php on the server.
    Dont know if this helps.
     
    hostrs.com, Jul 12, 2008 IP
  3. kailash

    kailash Well-Known Member

    Messages:
    1,248
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    190
    #3
    It didn't work for me but I have accomplished it using below rule:

    Kailash
     
    kailash, Jul 13, 2008 IP
  4. pr0t0n

    pr0t0n Well-Known Member

    Messages:
    243
    Likes Received:
    10
    Best Answers:
    10
    Trophy Points:
    128
    #4
    Yeah, you can use redirect. I believe you can not rewrite it to subdomain, unless if it was in some subfolder.
     
    pr0t0n, Jul 13, 2008 IP