Search code examples
webmodx

how to redirect html into a url


I am not sure if this is possible.

This is the name of the site: www.mysite.com

and I created an html (named index.html) & saved it to the folder myfile which is a redirect to this site www.mysite.com/myfile

Now on the site, I have a content here that if you click on it, it will direct you to this: www.mysite.com/documentation

Now the redirect html I made, I would like it to be redirected to the documentation

so that if you click on www.mysite.com/myfile - it will open the www.mysite.com/documentation but this documentation is not an html its inside the cms.

Is that possible?

Btw here is the html code I saved in the index.html. Do I have to insert the url here: www.mysite.com/documentation?

CONSTRUCTION PAGE


Solution

  • Is this what you need?

    <meta HTTP-EQUIV="REFRESH" content="0; url=http://www.mysite.com/documentation">
    

    I have trouble understanding your question correctly. So I am unsure if this will help you.

    Edit for valid html:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>Redirect</title>
    <meta http-equiv="REFRESH" content="0; url=http://www.mysite.com/documentation" />
    </head>
    <body>
    </body>
    </html>