Please help - Change config.php how???
|
hebhansen
![]()
Joined: 2009-02-10
Posts: 572 |
Posted: Thu, 2009-11-05 21:39
|
|
I located the config.php and I need to point to my index.php. What do I change? www.mysite.com/gallery3/index.php How do I get to the index file from www.mysite.com? config.php: $config["site_domain"] = Is this what I should change? My site has been down for 1½ days now and it is urgent. Please!!! all the best |
|


Posts: 16501
You don't need to do anything with Gallery.
If you want Gallery to be in a subdirectory why do you need/want to redirect requests to the root of your site to the subdirectory?
Either way, in www.mysite.com create a file called .htaccess
www.mysite.com/.htaccess
and put this in there:
Changing mysite to your actual website.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 572
Thanks - doesn't work
.htaccess is placed at root same level as Gallery3 folder.
I entered your code and changed the URL.
I get:
Forbidden
You don't have permission to access / on this server.
Apache/2.2.9 (Debian) Server at www.mysite.com Port 80
all the best
HB
Posts: 16501
Put this at the top of that same .htaccess file:
# Set the default handler.
DirectoryIndex index.php
If that doesn't fix it, please post a real link to your site.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 572
Doesn't work ... Code in the .htaccess:
Site not working:
www.image.agentura.dk
working at
www.image.agentura.dk/gallery3
all the best
HB
Posts: 16501
Ah, I think you've got something else setup restricting access to the webroot. Again though, why have gallery as a sub-directory when you have a sub-domain for this?
Remove that .htaccess file I had you create all together. Then just create a simple index.html file and put some stuff in it (or leave it blank) and post back when you've done that.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 16501
Oh wait, www.image.agentura.dk/index.html or www.image.agentura.dk/index.php redirect. There's something not setup right or something.
What else do you have under www.image.agentura.dk?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 572
Staying inside the gallery3 folder makes upgrades a lot asier. Everything goes where it's supposed - idiot proff
Nothing else in there
- Gallery3
- .htaccess
I am standing by... not sure what I have to do??
all the best
HB
Posts: 572
Anyone?
all the best
HB
Posts: 16501
Try putting an index.html file in the root of your site.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 16501
Also search google on redirecting. This isn't a Gallery specific issue.
http://www.google.com/search?hl=en&source=hp&q=redirect+to+subdirectory
If you put a index.html page in the root of your site and that still gives you a "forbidden" message. Try renaming/removing the .htaccess file and if you still get a "forbidden" message then something is not configured correctly on your server.
If however, you get a blank page or a page with what ever you put into index.html, then you can try redirecting with a meta refresh (search google).
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 572
Why is this such a pain for my site.
What is your configuration like? What's in root and where is the index file? I assume everyone place gallery in the gallery3 folder??? or did I miss something here.
Is it clear that all I want is mysite.com to go directly to mysite.com/gallery3 since thats where the index is.
Or do you not have Gallery inside a gallery3 folder, but rather at the root.
all the best
HB
Posts: 22876
Most people will up gallery at mysite.com/gallery3 and most people will already have mysite.com/ with the rest of there website set up.
If you want gallery to be at mysite.com/ then you could have put the files their. But it seems that if you go to http://www.image.agentura.dk/ it seems to work. I think you are confusing sub domains and domains as well as confusing us with mysite.com.
A good host should be able to assist in redirects.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 572
Thanks Dave
I got impatient and transferred the entire Gallery to root and not inside Gallery3... Thats why it works now. That wasnt my intention though.
I'll see waht comes up here and yes, maybe tha host can redirect. Just assumed everyone had it in g3 folder, hence had code that did the job
all the best
HB