FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Invalid subdomain redirect to index.





engammalsko
Hi, is it possible to somehow make a invalid link redirect to the index page?
like this... If you type http://engammalsko.frihost.org/dfksdm you should be redirected to http://engammalsko.frihost.org.

Can I change some setting to do this? Or program it? If it's possible then how?
Thanks for answers Very Happy
badai
login direct admin
click on custom error pages
edit your 404.shtml
use something like meta refresh, i'm not sure if you can use javascript or php in that file.
engammalsko
Thanks! Work fine : )

Just added a 404.shtml in public_html and then added this if someone is wondering
Code:
<html>
   <head>
      <meta HTTP-EQUIV="REFRESH" content="0; url=/">
   </head>
</html>


Thanks for the help! Very Happy
Related topics
What Do You suggest ?
bilanguage
subdomain problem
Domain Help
Host in a remote subdomain via alias
subdomain on addon domain problem
What do you expect from a link directory script
Redirect Subdomain violation?
Site Redirections
URL rewrite (Apache)
help me understand the workaround of url eg like this--->
Prince of Persia 4
Server 4 opened for new accounts
How to make custom landing page
Reply to topic    Frihost Forum Index -> Support and Web Hosting -> Frihost Support

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.