Web Hosting Talk







View Full Version : URL Redirection


jnathan
04-09-2010, 03:58 PM
Hello Experts

How can I have URL redirection.
I made a web page on wix.com/myhomepage
now I bought a Windows hosting domain named www.example.com

I want, when people enter on www.example.com , that address redirects them to wix.com/myhomepage

I am newbie in webpage building and hosting, so please provide step by step process,

Thanks a lot !

AI-Wayne
04-09-2010, 07:14 PM
There are a number of ways to handle this. You posted in the Windows section, but please confirm you are indeed on a Windows platform (that will shape the answer) and if so, what version of IIS (typically IIS 6 or 7).

Also, what's the primary scripting language your site is coded in (i.e. PHP, ASP, ASP.NET, etc) or is it simply HTML?

jnathan
04-10-2010, 06:14 AM
My Site is made at wix.com they have built in flash templates which I configured according my needs.

So what are the # of ways to do the URL redirection?

AI-Wayne
04-10-2010, 08:14 AM
It's helpful to know what the site was written in (Flash), but it's also to know the specifics about your hosting. IIS 7 has free official URL redirection tools available for it where IIS 6 does not.

Again, there are numerous ways to handle this depending on that answer. Here are some using scripting language on your homepage. To give you an idea, you'd create a new homepage, use one of these methods and redirect to your 'real' site homepage (the one with actual website content).

In Javascript (HTML):

<script type="text/javascript">
<!--
window.location = "http://wix.com/myhomepage/"
//-->
</script>


In ASP:

<%@ Language=VBScript %>
<%
Response.Status="301 Moved Permanently"
Response.AddHeader "Location","http://wix.com/myhomepage/"
%>


In ASP.NET:

<script runat="server">
private void Page_Load(object sender, System.EventArgs e)
{
Response.Status = "301 Moved Permanently";
Response.AddHeader("Location","http://wix.com/myhomepage/");
}
</script>


In PHP:

<?
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: http://wix.com/myhomepage/" );
?>


And there's many others using ISAPI_Rewrite, Mod_rewrite, other scripting languages, IIS settings, etc. The real answer comes from what your hosting provider supports. You should make a support inquiry about what they offer.

jnathan
04-10-2010, 08:46 AM
I am using MS Frontpage 2007 to edit my index.html file.
Also May I know if there are free menu creating sites for my site?
Moreover, is it possible for the viewers to see www.example.com/home instead of www.wix.com/myhomepage when they visit my site?

And thanks for the codes, I will apply in 2 hours and let you know.

AI-Wayne
04-10-2010, 12:50 PM
I am using MS Frontpage 2007 to edit my index.html file.
Also May I know if there are free menu creating sites for my site?

Sorry, I'm not sure. You'll have to check with the site creator since it looks like it was all done in Flash. If it's not, then Google "menu creator" and/or "menu builder" and you should find a lot of options.

Moreover, is it possible for the viewers to see www.example.com/home instead of www.wix.com/myhomepage when they visit my site?

URL rewriting (what you're asking for) is different from URL redirection (my examples). URL rewriting will require you confirming what version of web server your hosting is on (IIS 6 or IIS 7). IIS 6 requires that your host has ISAPI_Rewrite installed -- this is a 3rd party item not all hosts supply or support this. IIS 7 has native URL rewrite module that nearly all hosts will support since it's free and directly from Microsoft.

Good luck -

PremiumHost
04-11-2010, 09:09 AM
Moreover, is it possible for the viewers to see www.example.com/home instead of www.wix.com/myhomepage when they visit my site?


Why don't you upload website to example.com/home?
What's the purpose of hosting files at /myhomepage but view website at url /home

jnathan
04-11-2010, 02:36 PM
Coz I am still a newbie in making web pages. wix.com has some brilliant flash templates that I liked. do you have any way for me using which I can develop my own webpage with minimum skill in web development?

PremiumHost
04-13-2010, 08:47 PM
Take a training course in web development?
Even after you finish the course, it still requires lots of practice to gain experiences before you can create a professional website.

bvsonline
05-03-2010, 06:01 AM
Hi,

If your server is a windows server, then it can be done easily through IIS property page of your site. If you have got a control panel, then surely there should be an option for URL redirection. Or else you can go for frame forwarding where the redirection is handled by means of some html code.