B4Print.com

Web Development & Design => Technical => Topic started by: David on January 11, 2012, 11:51:04 AM

Title: Web Site Redirect
Post by: David on January 11, 2012, 11:51:04 AM
here goes, I can't find a definitive answer anywhere, so you guys get it.
yeah I know, you're like a step child...  maybe with red hair, possibly left handed

If I want to redirect a web site I've done (for instance: using the url "www.mynewsite.com" to go to the real url: "http://www.asdasdasdasdasd/aaasdasdaa/fghgfghfg/login.aspx")
Do I:
1. Just make up a new url, or
2. Purchase a domain name and just not use a host since it will only be used for a redirect to an existing web site?

newbie here looking for an easy way
TIA,
David
Title: Re: Web Site Redirect
Post by: delooch on January 11, 2012, 11:55:37 AM
Quote from: david on January 11, 2012, 11:51:04 AMhere goes, I can't find a definitive answer anywhere, so you guys get it.
yeah I know, you're like a step child...  maybe with red hair, possibly left handed

If I want to redirect a web site I've done (for instance: using the url "www.mynewsite.com" to go to the real url: "http://www.asdasdasdasdasd/aaasdasdaa/fghgfghfg/login.aspx")
Do I:
1. Just make up a new url, or
2. Purchase a domain name and just not use a host since it will only be used for a redirect to an existing web site?

newbie here looking for an easy way
TIA,
David

depending on who you purchased the domain name from, or whoever is currently hosting it, you maybe able to setup a redirect or forward...  at least thats how ive been doing it. my host (domainmonger.com) lets you set that up and mail forwarding through a control panel app... so i can point www.mydomain.com (http://www.mydomain.com) to whatever real URL i want..
Title: Re: Web Site Redirect
Post by: DigiCorn on January 11, 2012, 11:56:12 AM
I know we did it like #2. We bought mutiple (a couple dozen, I htink) domain names from godaddy and then have them forward toward our site. Then we listed all the "phony" domain names on google to point to us.
Title: Re: Web Site Redirect
Post by: gnubler on January 11, 2012, 11:57:22 AM
What he said. Login to your domain registrar and check it out.
Title: Re: Web Site Redirect
Post by: Joe on January 11, 2012, 11:58:43 AM
As delooch mentioned, you hosting control panel might have the easy way to forward one url to the other. You have to own both domain names. If your hosting company doesn't have that option you can do it using a .htaccess file.
Title: Re: Web Site Redirect
Post by: Farabomb on January 11, 2012, 12:09:14 PM
I know Joe hates Go daddy with a passion we all now have a reason to hate them. The bastards suppourt internet censoring. (http://rt.com/usa/news/support-sopa-daddy-web-037/)

Might want to read up on SOPA (http://en.wikipedia.org/wiki/Stop_Online_Piracy_Act) while we still can. Freedoms are real hard to get back.
Title: Re: Web Site Redirect
Post by: gnubler on January 11, 2012, 12:15:24 PM
I heard about that last week. Can't click on linky but I think they lost thousands of customers, mass exodus.
Title: Re: Web Site Redirect
Post by: Joe on January 11, 2012, 12:16:26 PM
Quote from: gnubler on January 11, 2012, 12:15:24 PMI heard about that last week. Can't click on linky but I think they lost thousands of customers, mass exodus.

I only wish I was still there so I could leave again! :death:
Title: Re: Web Site Redirect
Post by: David on January 11, 2012, 12:20:02 PM
This is actually for my FTP server.
We use Ipswitch's WS_FTP Server Corporate with the Web Transfer Module (http://www.ipswitchft.com/Products/WebTransferModule/) (new purchase).
I've got the Web transfer module set and it works like a champ, but the URL is very long and I don't want to send it out as a useable link until I get the redirect sorted out.

The redirect is done through  IIS (I have V6). Supposedly all I need to do is make a txt file with the redirect response, put that in the directory and then set the web site contents to redirect to a new name.

But, I think Joe answered the question, I need to own a second domain name for the redirect, I can't just make up a name and have it work.

correct?    :hangme:
Title: Re: Web Site Redirect
Post by: DigiCorn on January 11, 2012, 12:21:11 PM
correct
Title: Re: Web Site Redirect
Post by: David on January 11, 2012, 12:23:35 PM
cool beans, now all I have to do is have a meeting where all the upstairs people think of the best name for a stupid ftp site. Maybe be done in a year...


 :drunk3:
Title: Re: Web Site Redirect
Post by: Joe on January 11, 2012, 12:28:53 PM
Quote from: david on January 11, 2012, 12:23:35 PMcool beans, now all I have to do is have a meeting where all the upstairs people think of the best name for a stupid ftp site. Maybe be done in a year...


 :drunk3:

Actually you could just create a sub-domain (FREE) like ftp.mydomain.com and then re-direct ftp.mydomain.com to www.loooooooooooooooooooooooooooooongassurl.com (http://www.loooooooooooooooooooooooooooooongassurl.com).
Title: Re: Web Site Redirect
Post by: gnubler on January 11, 2012, 12:38:05 PM
You can with .htaccess

I have all my domains forward to google.com. That's where everything is anyway...
Title: Re: Web Site Redirect
Post by: Joe on January 11, 2012, 12:43:20 PM
I just tried a test of the sub-domain idea. I created a sub-domain at http://redirect.b4print.com (http://redirect.b4print.com) and set it to redirect to https://www.b4print.com (https://www.b4print.com). The text in the .htaccess file is:

RewriteEngine on
RewriteCond %{HTTP_HOST} ^redirect\.b4print\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.redirect\.b4print\.com$
RewriteRule ^/?$ "http\:\/\/www\.b4print\.com" [R=301,L]

.htaccess files are used on Apache servers. I'm not sure if IIS servers use them or something different. I avoid Windows web servers if at all possible.
Title: Re: Web Site Redirect
Post by: David on January 11, 2012, 03:42:37 PM
ah, no .htaccess files on the box. Did a search for invisibles and nada.

looks like it's IIS or not at all.
I think I have it figured out, I'll be testing tomorrow.

cross your fingers, and if you can't connect to the internet tomorrow, I didn't do it.     :tapedshut:
Title: Re: Web Site Redirect
Post by: Joe on January 11, 2012, 04:01:27 PM
Quote from: david on January 11, 2012, 03:42:37 PMah, no .htaccess files on the box. Did a search for invisibles and nada.

looks like it's IIS or not at all.
I think I have it figured out, I'll be testing tomorrow.

cross your fingers, and if you can't connect to the internet tomorrow, I didn't do it.     :tapedshut:

Yeah, I don't think IIS supports .htaccess files. Good luck.
Title: Re: Web Site Redirect
Post by: mattbeals on January 24, 2012, 11:47:11 PM
In the IIS admin tool you can setup redirects, you can also do it in DNS. There are a number of ways of doing it. If you go to www.mycompany.com/filetransfer/ftpupload/sendmeafile/default.htm (http://www.mycompany.com/filetransfer/ftpupload/sendmeafile/default.htm) you can use redirect in the HTML. You can use DNS redirects on the server to forward requests for www.bobscompany.com/upload (http://www.bobscompany.com/upload) to www.bobsupload.com (http://www.bobsupload.com).

You don't necessarily have to own both domains. You can redirect anyone anywhere.