PDA

View Full Version : Home Page Issues URL Plz Help



Mermaid
05-21-2008, 02:02 AM
Note after typing this: Sorry it is so long, but i'm hoping by giving enough info the problems can be solved quickly so I can get on with making my site. Thanks :)

Hi, I have been at this for quite a few hours now, and have been searching and trying different things but nothing seems to be working. I just created my HM account, and I would like my main page (like www.mysite.com) to be displayed when people go to it.

However, I want that main page to be coppermine gallery. I have uploaded coppermine by using unlimited FTP and it worked. I also did the coppermine's install run. When you type my www.mysite.com into the browser it comes up with coppermine as the main page, but the link changes to www.mysite.com/index.htlm or www.mysite.com/index.php (because I have tried changing the index page from .php to .htlm. Also when clicking on a lnk in the main page, it makes the url even worse by making it www.mysite.com/index.php/index.php (so the index.php shows twice.) I would really like it to just show www.mysite.com

I uploaded coppermines folder to public_html in a folder called index.php. That is the only way I can get it to be the main page you see when typing the url. I tried changing that index.php to folder to gallery hopping that my website would at least say www.mysite.com/gallery but then it takes me to a weird page that just lists all the folders in public_html so you have to click gallery etc. and it takes you there. Any help please?

Oh, and when uploading coppermine there are alot of documents inside the folder. One is called index.php. I have a feeling that this may be why I'm getting the double index.php at the url, but i have tried moving this and even deleting, and nothing happens. I also tried moving each file individually into the public_html folder, but after doing about half (and there are quite a bit so it was taking time), i checked the website and i got a big error so i moved all the files back.

And also, I am planning on bridging coppermine with smf forums. I tried installing smf with unlimited ftp into the directory public_html/forum and it worked fine. I then ran the install script of smf and the forums were up and running, but I got a weird url for this too. It came up as www.mysite.com/forum/smf1-1-5. So i deledted the folder and everythng it and when I ran the install again it gives you an option for forum url. It had the same url I had before, so I tried deledting the smf1-1-5 part so t was just www.mysite.com/forums but it still gave me the www.mysite.com/forums/smf1-1-5 . Any help on how to get this just www.mysite.com/forums would also be appreciated.


Oh yeah, another thing which may or may not be important, I have no idea, is that I had a folder (or directory, sorry not sure of the proper term), there was one called cgi-bin. Not sure what it's for, should it even be there, if it's important, and so on.

shadmego
05-21-2008, 07:35 AM
If possible, can you provide a link to the site you are having problems with?

~regards, and welcome to the Community!

Mermaid
05-25-2008, 04:30 AM
I fixed the smf problem, but when going to my main page I am still getting the index.php along with if you press the Home button on that page it comes up index.php/index.php

The url is this: www.avatarsmania.com

Thanks.

linFox
05-25-2008, 06:29 AM
You said you uploaded Coppermine to an actual folder called index.php. If you want your website's root to be this Coppermine install, then move all of Coppermine's files directly into public_html (ie. not inside a folder of its own).

If after this you are still being redirected to the old /index.php/ folder when you access your website's root, look inside a file called .htaccess in public_html for a line referring to 'Redirect' and '/index.php/' and remove it.

pghcollectibles
05-25-2008, 10:08 AM
yes i can see that you have this all in a folder called index.php. the solution is as linfox said to move everything that is inside that directory or folder (those words are one and the same) to the public_html folder. the fastest way i know of to do this is by using file manager.

expand the folder (home/username) then the folder public_html

click on the index.php folder link to view its contents

when the contents of folder index.php are displayed on the right side of the screen, click the select all link above

click the move file link

in the popup window the address should be: /public_html/

click the move file(s) button

verify the folder index.php is empty and all files are now in public_html folder

delete index.php folder.

mission complete.

now when someone types www.yourpage.com it will show your page and in the url address box it will show www.yourpage.com/

when you click on the home link (which refers to www.yourpage.com/index.php) the url address box will display www.yourpage.com/index.php if this is ok with you then you are done.

if you always want the address box to only display www.yourpage.com/ without the index.php while you are viewing the home page (that issue never bothers me usually), there are two ways of doing this that i know of. one is with mod_rewrite in the htaccess file. the other is by editing any page that links to www.yourpage.com/index.php and just make it link to www.yourpage.com/ that could be complicated if you dont know what youre looking for or if there are many pages in the gallery . its possible (ive seen this with some templates) there is a file called configure.php most likely with permission set to 444 that has a variable which sets your home page and it could be edited, (although its easy to walk you through what to do with it), i would advise against this if you dont know what you are doing.