Jump to content

HTML help


Recommended Posts

Hello guys, i have a personal website, and i have a question here:

how to redirect to a certain html page



[noparse]www.example.com/xxx[/noparse] is entered?

when directory /xxx/ entered, go to abc.html

when just example.com (no directory) entered, go to another page i specify

thanks very much!

Link to comment
Share on other sites

Typically the default page for a directory is index.html or index.htm. If you want it to be something different, you can change that in the web server configuration file.

I think you can also set the name of the index page in an .htaccess file that you put in the directory.

Link to comment
Share on other sites

You can also do that via a subdomain name redirection in cPanel.

That's if the site uses cPanel. The configuration to send a 301 or 303 redirect depends upon the particular server and/or web application technology.

If you can't get the redirect to work like that, then do what kerbiloid suggested, but set the delay to zero. It's not the ideal, but will work fine.

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...