hi my web address now is : cvs.testing.com:8080.. I would like to redirect/make the URL short without that 8080, is there a way to do that? I cannot enable port 80 cause I am using it for something else.
Printable View
hi my web address now is : cvs.testing.com:8080.. I would like to redirect/make the URL short without that 8080, is there a way to do that? I cannot enable port 80 cause I am using it for something else.
Nope.
Rather, you could get something from :80 to redirect, but the :8080 needs to show up in the URL if that's where your web server is.
You could use a host header to redirect to your website wthout the port displaying I believe. What kind of access do you have to your webserver?
Or even use an .htaccess file to do a url rewrite.
Unfortunately, the headers bit is after the port has been processed, as web servers are listening to a given set of (or one) specific port(s). Most websites are :80 by default, which is hidden by the browser, so this means that http://www.vbforums.com:2345/ will not work, but :80 will go to the default vbforums.com.
Hmm, I'll have to test that out as its been a while but the htaccess file with rewritting should do the trick.
medhak:
how can I do that to redirect?
In post #2 hes saying that you cant.
OK, why do I have to type full path like http://cvs.testing.com:8080/viewcv.asp.net to get the page opened? When I just typed http://cvs.testing.com:8080/ it's not working.
Is "viewcv.asp.net" the name of your page? You need to set it as the "default document" in your IIS settings.
mendhak, I did that. I don't know y now :(
So what is viewcv.asp.net and why does it have an unusual extension? (.asp.net instead of .aspx, if it is a page)
Probably an accidental renaming of the file/extension would be my guess.
lol I must have typed too fast, it's aspx. So back to the redirection, is there a way to hide that 8080? after it has been processed?
Conventionally, no. I am going to try and see if RobDog's suggestion about rewriting via .htaccess works on my server.
Ok, .htaccess gives you a SERVER_PORT property. You can use that in your mod_rewerite.
No, no, I spoke too soon. :blush:
You want to 'hide it'. So, you need to receive requests for cvs.testing.com. If the request matches cvs.testing.com, then you rewrite it to port 8080.
Does that look alright? I am not that experienced with mod_rewrites, because I hate Apache as it's causing my website all sorts of problems at the moment. :)Code:RewriteRule ^http://cvs.testing.com/(.*)$ http://cvs.testing.com:8080/$1