sknight
|
My main forumhttp://homeandaway.myfastforum.org/
I have a domain name www.thesoapdish.co.uk
Is there any way I can have it directed straight to my forum like the above address http://homeandaway.myfastforum.org/ does?
|
admin (no pm's please)
|
http://howtodoit.myfreeforum.org/about732.html&highlight=redirect
|
sknight
|
Think I am a bit simple. Is it a relatively easy task? I cant seem to do it
|
admin (no pm's please)
|
What can't you do?
I don't even see an index.html home page
|
Zudane
|
Meta redirects can be a pain... I found that the easiest way to do this was via javascript (doesn't work if javascript is disabled though)...
| Code: | <script language="Javascript">
var loc = location.href;
if(loc.match("_OLD_DOMAIN_"))
{
var newloc = loc.replace(/_OLD_DOMAIN_/gi, "_NEW_DOMAIN_");
location.replace(newloc);
}
</script> |
Here you just replace *ONLY* _OLD_DOMAIN_ with the MYFF address (homeandaway.myfastforum.org in your case) and _NEW_DOMAIN_ with the new address (www.thesoapdish.co.uk for you)
In which case you should see this:
| Code: | <script language="Javascript">
var loc = location.href;
if(loc.match("homeandaway.myfastforum.org"))
{
var newloc = loc.replace(/homeandaway.myfastforum.org/gi, "www.thesoapdish.co.uk");
location.replace(newloc);
}
</script> |
That code automatically replaces the URL with the new domain, only if the old domain is in the address bar - it leaves the user on the same page though. Just place it anywhere in your head tags in the overall_header and simple_header
|
sknight
|
http://homeandaway.myfastforum.org/
Is there a reason why my own domain (www.thesoapdish.co.uk) doesn't take me straight to the forums like the MFF one above does?
I am trying to use the info above to change it so it goes straight the the message board but I just wondered why my domain acts differently
|
admin (no pm's please)
|
Probably as you have not created an index.html page and followed the meta redirect instructions.
|
sknight
|
I was only asking. I am still trying to do that and trying to learn and just asked to try and find out what the cause was. I feel like when I ask a question here I always cringe waiting to get a reply as most of the time they are very patronising and I am made to feel stupid
|
while()
|
| sknight wrote: | | I was only asking. I am still trying to do that and trying to learn and just asked to try and find out what the cause was. I feel like when I ask a question here I always cringe waiting to get a reply as most of the time they are very patronising and I am made to feel stupid |
It's because you're not reading the guides and information provided. If you'd followed the guide posted above this would have been solved; nobody has a problem answering your questions but you're ignoring the information provided. If you have a specific problem with the guide, sure, but the problem you're asking about is covered and it gets very frustrating helping people who aren't willing to put effort into finding the answer for themselves.
|
sknight
|
I am sorry I am following instructions and just had a question but never mind.
So my progress so far, I have followed instructions as per
"How To Make My Webpage My Home Page / or vice versa" Link
I have created a "index.html" and when I click preview it works but when I go to my site it doesn't redirect. Do I need to use the codes Zudane gave to go in overall header and simple header as well for it to work?
The other thing I noticed is when I type http://thesoapdish.co.uk/ into the browser it takes me to my forums but when I use www. (http://www.thesoapdish.co.uk/) I am taken to the page I dont want. Am I on the right track or way off?
|
Zudane
|
the www. will always take you to the portal, it's just how these are set up.
The code I put can be put in the header, but that will just take
http://homeandaway.myfastforum.org/index.php
and turn it into
http://www.thesoapdish.co.uk/index.php
It only replaces the MFF domain name with your own, The meta redirect can be used, but not all browsers support it and mostly it's not recommended, but as well the script I gave is easily avoided with javascript turned off.
|
admin (no pm's please)
|
I'm curious, what browser does not support meta redirect? and what % does it represent?
|
sknight
|
Have I done something wrong then with the index.html
|
admin (no pm's please)
|
what is your index.html?
|
sknight
|
Sorry I just had a thought. I never used to have this page when I used to log in but now I do and was wondering, is it a portal that I have added which can be removed to leave the forums as the first page you go to?
|
admin (no pm's please)
|
I still see no trace of you have created an index.html homepage in the web page editor
|
|
|