• Sign in to Neowin Faster!

    Create an account on Neowin to contribute and support the site.

  • 0
Sign in to follow this  

really easy html question..

Question

signalpirate    1

hey guys

so i'm a newbie to the webpage creation world.. and i made a basic html page...

so i have a domain www.lukaszweb.com

now i want it to automatically go to a virtual directory called main

so in the public_html folder i have index.shtml which has the code

<!--#include virtual='main/index.html' -->

so yes .. i have an index.html file in my main folder

i admit i used a site builder program that my host had... and this was how it was setup .. but i didn't like it .. and the folder naming convention ... so i change the folder name to what i have now... "main" and edited the index.shtml file...

when you go to the site... you get a 404 page... but if you go to www.lukaszweb.com/main ... vioala... everything is there .... what gives???

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0
PyX    140

<!--#include virtual='main/index.html' -->

This tag shouldn't do anything btw.

You cannot literally include a webpage if you have an HTML-only page (correct me if I'm wrong), but an application can do so, and it adds random tags like this one.

Now, I cannot really help you with your issue, as the application decided of your website structure...

Share this post


Link to post
Share on other sites
  • 0
signalpirate    1

yeah i scratched the whole site builder stuff.. just took some code and redid the rest in dreamweaver

Share this post


Link to post
Share on other sites
  • 0
signalpirate    1

sweet.. figured it out ... my index.html page was messed up ... so it does work :D

Share this post


Link to post
Share on other sites
  • 0
+mrbester    223
This tag shouldn't do anything btw.

You cannot literally include a webpage if you have an HTML-only page (correct me if I'm wrong), but an application can do so, and it adds random tags like this one.

/me points out the almost invisible extra character in the filename: index.shtml :whistle:

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.