Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5

Thread: redirect port

  1. #1
    Regular Coder
    Join Date
    Aug 2005
    Posts
    257
    Thanks
    8
    Thanked 0 Times in 0 Posts

    redirect port

    how i can redirect port 2082 to port 80 using .htaccess???

    Regards

  • #2
    Regular Coder Stooshie's Avatar
    Join Date
    Mar 2008
    Location
    Dundee, Scotland
    Posts
    378
    Thanks
    9
    Thanked 39 Times in 39 Posts
    I'm not sure you can (others on this board will be more expert).

    The reason is that I think a call to your machine on port 2082 will be made by a machine waiting on port 2082 for a reply.

    Also I think .htaccess is only referred to by apache on a call on port 80.
    Regards, Stooshie
    O

  • #3
    Regular Coder
    Join Date
    Aug 2005
    Posts
    257
    Thanks
    8
    Thanked 0 Times in 0 Posts
    i think you have all reason but if anyone knows how i can do this, please reply my message.

    rEgards

  • #4
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    You might be able to rewrite the url to change it to port 80 but the computer has to be listening on port 80 for it to respond. You could make a redirect page on the site on that port and have it send the user to the same address but port 80. However again, if nothing is there to respond on that port, nothing will happen.
    OracleGuy

  • #5
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    2082 is the cpanel port, don't think you are able to change that. What exactly are you trying to do anyways?
    ||||If you are getting paid to do a job, don't ask for help on it!||||


  •  

    Posting Permissions

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