Web Hosting Forums

Results 1 to 6 of 6

This is a discussion on htaccess redirect in the Hosting Talk & Chit-chat forum
hi. I'm trying to set up a redirect from one subdomain to another. like so: http://forum.buttonpusher.net > http://forums.buttonpusher.net (basicly cos people keep getting lost and ...

  1. #1
    Loyal Client
    Join Date
    Oct 2002
    Posts
    106

    htaccess redirect

    hi.
    I'm trying to set up a redirect from one subdomain to another.

    like so:

    http://forum.buttonpusher.net > http://forums.buttonpusher.net

    (basicly cos people keep getting lost and missing the s!)

    my problem is that the cpanel utility will only take http://www.buttonpusher.net/ *YOUR DIRECTORY* as the redirect source... ive tried giving it /forum/ but this has not worked.

    I have also tried looking at the actual .htaccess file myself but can not work out how to fix the problem.
    does anybody around here know how i can do this?

    I'm guessing there is a line of htaccess code i can put in to do it.

    thanks, rob

  2. #2
    Like a star... Julian Muņoz's Avatar
    Join Date
    Oct 2002
    Location
    Colombia
    Posts
    1,368
    Try this in your htaccess:

    Redirect /forum http://forums.buttonpusher.net
    Julian D. Muņoz - LANeros.com

  3. #3
    Loyal Client
    Join Date
    Oct 2002
    Posts
    106
    hmmm that doesnt seem to work. ive triewd forum/
    /forum/ and /forum none seem to make it work... they do work with the subdomain. I just get a 403 error (cos there arnt any pages in /forum)

    I guess i could take a different angle on this... and use html redirecting!

    i should be able to get that to work


    thanks anyway.
    /rob

  4. #4
    Like a star... Julian Muņoz's Avatar
    Join Date
    Oct 2002
    Location
    Colombia
    Posts
    1,368
    You can try this then:

    In your .htaccess:

    Redirect / http://forums.buttonpusher.net


    And save it in your public_html/forum directory.


    And yes, html redirection will work too


    PS: Let me know if the redirect above works.
    Julian D. Muņoz - LANeros.com

  5. #5
    Loyal Client
    Join Date
    Oct 2002
    Posts
    106
    Yup. That one works a treat!

    Thanks a lot. All it needed was somebody with a little more logic than me lol

    looks much neater than a page saying "In 5 secs you will be redirected to blah blah blah".


    http://foruM.buttonpusher.net

    cheers
    /Rob

  6. #6
    Like a star... Julian Muņoz's Avatar
    Join Date
    Oct 2002
    Location
    Colombia
    Posts
    1,368
    I'm glad for you
    Julian D. Muņoz - LANeros.com

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •