links all going to index.php
chess69
Joined: 2012-05-19
Posts: 16 |
Posted: Mon, 2012-05-28 15:26 |
so ive set up my links and added the url but they all go through the website then the index.php file first then the url?? e.g. www.mysite.com/gallery3/index.php/www.google.com even the logo i put in the top left hand corner is going through the index.php first giving me a no such page result! Help?? |
|
Posts: 814
take a look at the .htaccess file - there are instructions for removing the index.php from your URLs
Posts: 16
where would i find that??
Posts: 814
it's a file in the root of your gallery directory.
Posts: 16
sorry buddy, im still lost! i even did a search for it locally and no joy!
Posts: 814
I'm sorry I can't explain better, but in the root director of your gallery install, there is a file named .htaccess It's a hidden file (hence the . in front of it) and won't show in a normal directory listing. If you're on a unix/linux box, you can use ls -al in the directory and see the file. This file will need to be edited to uncomment out some lines (indicated in the file) to allow rewriting so that index.php is not in url.
Unfortunately, I can't offer much more assistance than this.
Posts: 16
no problems, i appreciate all the help i can get. im so bloodly close and then small little things trip me up!
Anyways ill have a look for that file - im using a mac, so ill do a search on hidden files with that
thanks again buddy!
Posts: 1857
I don't think that's going to help you; if you can't find the file, you probably haven't made any changes to it and it shouldn't be causing any problems (e.g. that shouldn't have anything to do with your logo giving a 404 error).
I'm assuming that "giving me a no such page result" means that all of your pages are throwing 404 errors.
Can't really help you with that without being able to visit the actual site.
Posts: 27300
Right. With a url like:
www.mysite.com/gallery3/index.php/www.google.com
it is a bit confusing as there seems to be 2 sites there.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 16
first up i sorted this issue out
secondly - apologies if my post was a bit confusing.
the answer was when you are adding links either on the page.html.php or the module that adds three links ('menu_links' i think it was called), i had to add 'http://' before the address. once i did this they worked perfectly.
Thanks again for your patience and help guys!
Posts: 27300
I have made improvments to the docs:
http://codex.gallery2.org/Gallery3:Modules:menu_links#Usage
if you have better suggestions let us know.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team