1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

redirect domain/page.html to subdomain/page.html

Discussion in 'Apache' started by 3walim, Aug 13, 2008.

  1. #1
    hello
    I have some page on domain/
    and want to redirect it to subdomain/
    I don’t want redirect domain to subdomain just redirect some page on domain/ to subdomain/


    also is there any way to do that for a lot of page?


    thanks in advance
     
    3walim, Aug 13, 2008 IP
  2. nimhost

    nimhost Active Member

    Messages:
    235
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    58
    #2
    you can use normal redirect method on your .htaccess file or using 301 redirect

    Redirect /page.html http:// subdomain . yourdomain . com/ page . html

    or

    Redirect 301 /page.html http:// subdomain . yourdomain . com/ page. html

    remove the space on the code
    i'm using space because i'm not allowed yet to posting link :)
     
    nimhost, Aug 15, 2008 IP
  3. 3walim

    3walim Peon

    Messages:
    282
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    will I use both of them and have strange proplem really!
    it redirect it okay but whatever you redirect it to it will not work and down
    for example I make test.html and put it on forums.3walim.com
    then I creat same page on www.3walim.com
    now when I go to
    www.3walim.com/test.html or forums.3walim.com/test.html
    bothof them will give you down error
    I try remove
    Redirect 301 /test.html http://forums.3walim.con/test.html
    from .htacess and it work

    so why if I put redirect it look like down?

    thanks so much for reply
     
    3walim, Aug 17, 2008 IP
  4. nimhost

    nimhost Active Member

    Messages:
    235
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    58
    #4
    read the post i had wrote carefully

    you can use 1 of method but not both

    i had put word "or" between two code :)

    anyway Redirect 301 is Redirect which will transfer all data in old domain into new domain like PR data, backlinks data, etc but Redirect without 301 will make search engine still recognize the old domain :)
     
    nimhost, Aug 17, 2008 IP
  5. 3walim

    3walim Peon

    Messages:
    282
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    when I said I use both of them I mean try both of them on signal not on same time
     
    3walim, Aug 17, 2008 IP
  6. nimhost

    nimhost Active Member

    Messages:
    235
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    58
    #6
    may i know the error message you got when you running the code on your htaccess ?

    because i'm running it fine for using Redirect 301 on my site http:// proxy. nimhost .com :)
     
    nimhost, Aug 17, 2008 IP
  7. 3walim

    3walim Peon

    Messages:
    282
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #7
    3walim, Aug 18, 2008 IP
  8. nimhost

    nimhost Active Member

    Messages:
    235
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    58
    #8
    can't connect to your site
     
    nimhost, Aug 18, 2008 IP