View Full Version : Homepage URL displays long path
camden
03-20-2008, 12:23 AM
My website in a browser window is displayed as:
http://www.mywebsite.com/mywebsite_folder/Home.html
Can someone please tell me what I need to do so that when www.mywebsite.com is entered in a browser window www.mywebsite.com is displayed as the path to the home page?
Will I have to do this for all the pages on my site - e.g. About has the same issue?
I'm admittedly new at this and just u/led my site. Searching the forums yielded a suggestion to make a DNS pointer change on the cpanel and to modify a .htaccess file. I couldn't find any DNS pointer change function on the cpanel and the .htaccess mod didn't make sense to me.
Thanks!
linFox
03-20-2008, 06:06 AM
Your website's root folder is public_html. You've uploaded your site into a folder called mywebsite_folder within public_html, which is why the URL displays as such.
So, move all content from the mywebsite_folder directly into public_html, and then rename Home.html to index.html (all files are case-sensitive, make sure it's lower case).
Once you've done those, your site should be accessible simply via your URL - http://www.mywebsite.com/
camden
03-20-2008, 07:35 AM
Thank you!
You've helped me get rid of the folder issue but when I rename Home.html to index.html (which already existed - I think the content in the files were the same) I get the following error:
The requested URL /Home.html was not found on this server.
404. etc.
In my iWeb project I do have a page name "Home." So I think I need to figure out how to make the index page the real "home" page.
pghcollectibles
03-20-2008, 11:41 AM
also if there is no index it will look for default.??? then i cant remember what comes next but there is an order of what to look for. even index.html, index.asp (which is only on windows based servers), index.php and others. there is an order of which is the first page that will be shown if exists.
linFox
03-20-2008, 07:16 PM
Well then iWeb must have added some sort of redirect, most likely to .htaccess or the existing index.html, in order to redirect to Home.html.
Rename all instances of Home.html to index.html within iWeb, then have a look for a file called .htaccess in public_html - note the period at the front, it may be hidden so ensure all hidden files are being displayed in your FTP/file browser.
If you find .htaccess, look inside it for anything that refers to Home.html (eg. DirectoryIndex or RewriteRule) and comment it out (add # to the front).
griff671
03-20-2008, 07:43 PM
Also be aware of case sensitivity, i.e. Home.html is not the same as home.html.
I would recommend using all lower-case for anything that will be in a url.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.