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??

 
jnash
jnash's picture

Joined: 2004-08-02
Posts: 814
Posted: Mon, 2012-05-28 17:07

take a look at the .htaccess file - there are instructions for removing the index.php from your URLs

 
chess69

Joined: 2012-05-19
Posts: 16
Posted: Mon, 2012-05-28 17:42

where would i find that??

 
jnash
jnash's picture

Joined: 2004-08-02
Posts: 814
Posted: Mon, 2012-05-28 18:09

it's a file in the root of your gallery directory.

 
chess69

Joined: 2012-05-19
Posts: 16
Posted: Mon, 2012-05-28 18:34

sorry buddy, im still lost! i even did a search for it locally and no joy!

 
jnash
jnash's picture

Joined: 2004-08-02
Posts: 814
Posted: Mon, 2012-05-28 19:23

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.

 
chess69

Joined: 2012-05-19
Posts: 16
Posted: Mon, 2012-05-28 19:36

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! :)

 
tempg

Joined: 2005-12-17
Posts: 1857
Posted: Thu, 2012-05-31 13:26

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.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2012-05-31 13:51
Quote:
Can't really help you with that without being able to visit the actual site.

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

 
chess69

Joined: 2012-05-19
Posts: 16
Posted: Thu, 2012-05-31 15:02

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! :)

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2012-05-31 15:36

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