Jump to content

Recommended Posts

Posted

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

Posted

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

 

 

 

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

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

 

 

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

Posted
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

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

 

 

 

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
×
×
  • Create New...