Jump to content

main webpage have to be titled "index.html"


Mokothemonkey

Recommended Posts

Does your homepage have to be titled anything specific, or can it be anything you want.

I currently have my homepage called "FR2 home.html"

will I have to change it to "home.html" before I host it?

 

Thanks

Link to comment
Share on other sites

You can have any page your home page but if you want your root directory to default to it when you post just your domain name ie: http://heliohost.org then you'll either need to use a index.html, index.shtml, index.php etc. or change it inside your .htaccess file with this:

 

DirectoryIndex FR2home.html

 

btw, you really don't want to have any spaces in a url like this FR2 home.html. Better if it was like this: FR2_home.html or FR2-home.html

 

 

 

Link to comment
Share on other sites

You can have any page your home page but if you want your root directory to default to it when you post just your domain name ie: http://heliohost.org then you'll either need to use a index.html, index.shtml, index.php etc. or change it inside your .htaccess file with this:

 

DirectoryIndex FR2home.html

 

btw, you really don't want to have any spaces in a url like this FR2 home.html. Better if it was like this: FR2_home.html or FR2-home.html

 

Thanks - I guess I have to go change all my links :o

 

EDIT: Wow I just discovered CTRL + F in notepad! What a nice little search tool. Made things much easier - replaced FR2 home.html to index.html on 15 pages in 10 minutes.

Link to comment
Share on other sites

EDIT: Wow I just discovered CTRL + F in notepad! What a nice little search tool. Made things much easier - replaced FR2 home.html to index.html on 15 pages in 10 minutes.

 

Yea find is nice but "Search & Replace" is better. :)

 

Click Replace on this tool.

 

Made by a friend of mine (not me)

http://byrondallas.heliohost.org/Sonny/xlectric-testbed.html

 

You'll need to paste something inside the textarea like code or text to use the option.

 

 

Link to comment
Share on other sites

EDIT: Wow I just discovered CTRL + F in notepad! What a nice little search tool. Made things much easier - replaced FR2 home.html to index.html on 15 pages in 10 minutes.

 

Yea find is nice but "Search & Replace" is better. :)

 

Click Replace on this tool.

 

Made by a friend of mine (not me)

http://byrondallas.heliohost.org/Sonny/xlectric-testbed.html

 

You'll need to paste something inside the textarea like code or text to use the option.

False. Notepad++ is better.

Link to comment
Share on other sites

What if you placed the site in a folder in WWW?

 

For example: the files for the site are at "http://nigelpull.com/drupal/" but you want to just go to "http://nigelpull.com" and be presented with the same thing. Does the site need to be reinstalled to the WWW root or can a .htaccess file of some kind be used?

 

Shouldn't byrons example fix this issue?

"DirectoryIndex drupal.html"

 

Also, thanks wizard I think I might be downloading notepad++ in the future. I googled it and it looks way better for html. Plus it may help me in the future as I look into programming :lol:

 

Byron that prgoram was great, although the validation was a little off. Told me my </head> was improper because there was no <head> when there was. All in all it worked pretty well other then that

Link to comment
Share on other sites

What if you placed the site in a folder in WWW?

 

For example: the files for the site are at "http://nigelpull.com/drupal/" but you want to just go to "http://nigelpull.com" and be presented with the same thing. Does the site need to be reinstalled to the WWW root or can a .htaccess file of some kind be used?

 

You could probably do something like this in your root directory htaccess file:

 

RewriteEngine On
RewriteRule ^(.*)$ /drupal/ [R=301,L]

 

But what you got to realize is htaccess is inherited to each directory that is under the .htaccess file, so all requests from ANY directory end up going to your drupal directory unless you add an htaccess file in each directory with this:

 

RewriteEngine Off

 

Which will keep you from using mod_rewrite in that directory. So your better off just moving your files inside the root directory, unless somebody else can show you a better way.

 

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
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...