Links going to wrong pages

Please report bugs here!

Moderator: Thorsten

Post Reply
ddn
Posts: 3
Joined: Mon Jul 11, 2011 10:00 pm

Links going to wrong pages

Post by ddn »

Hello, I don't know if this is a bug or it has to do with a error during my installation. I have an issue where many action links are missing the original index.php prefix.
For example, on the main (user) index.php, when I try to login or logout I would get the link http://localhost/faq/?action=login or http://localhost/faq/?action=logout. Since it is missing the index.php, it takes me to the directory of my faq folder.
It also occurs in admin/index.php, I can't do anything because the *.php is missing before ?action.

Did I install it wrong?
Thorsten
Posts: 15724
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Links going to wrong pages

Post by Thorsten »

Hi,

no, that's okay. You don't need the index.php file, your webserver should handle this internally and use the index.php

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
ddn
Posts: 3
Joined: Mon Jul 11, 2011 10:00 pm

Re: Links going to wrong pages

Post by ddn »

I have this same issue. I've blocked folder access to users so I get a Forbidden error. I've looked at the .htaccess file for phpmyfaq and don't see any redirects. To correct this should I use something like alias or redirect?
Thorsten
Posts: 15724
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Links going to wrong pages

Post by Thorsten »

Hi,

please add index.php to the DirectoryIndex: https://httpd.apache.org/docs/2.2/mod/mod_dir.html

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
ccccd
Posts: 4
Joined: Sun Sep 11, 2011 11:09 pm

Re: Links going to wrong pages

Post by ccccd »

I have the same issue - I installed phpMyFAQ 2.6.17 on linux, and web server is light speed.
- link to admin page works fine (http://{faq location}/admin/index.php)
- link to user (http://{faq}/index.php) brings up log in page, but as soon as I enter a user name (valid or non valid), I got the error "Request Page Not Found".

I have tried to enable debug by setting DEBUG flag to TRUE (file: Init.php in inc folder) for debugging, but do not see any logs.

Any idea?

Thanks.
Thorsten
Posts: 15724
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Links going to wrong pages

Post by Thorsten »

Hi,

it's the same issue, you need the DirectoryIndex directive in your Apache.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
ccccd
Posts: 4
Joined: Sun Sep 11, 2011 11:09 pm

Re: Links going to wrong pages

Post by ccccd »

thanks. Unfortunately we installed phpMyFAQ on a server with light speed, and we do not have apache.
Do you know if anyone has got phpMyFAQ work successfully with light speed? (I posted the same question on another thread "Install phpMyFAQ with light speed").

Thanks.
Thorsten
Posts: 15724
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Links going to wrong pages

Post by Thorsten »

Hi,

I never heard about light speed, do you mean lighttpd?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
ccccd
Posts: 4
Joined: Sun Sep 11, 2011 11:09 pm

Re: Links going to wrong pages

Post by ccccd »

I meant litespeed, not lighttpd.

I have tried different ways (eg adding index.php, changing directoryindex), but it still does not work. I still got error "page not found".

does the path name have to be /faq? currently i have the following

/phpMyFAQ/phpMyFAQ2.6.17/index.php

does it matter? or should i change to
/faq/index.php

I do not think this is the issue, just want to make sure.

Thanks.
jason102178
Posts: 200
Joined: Tue Nov 02, 2010 9:08 am
Location: United States-Ohio
Contact:

Re: Links going to wrong pages

Post by jason102178 »

phpMyFAQ Quality Assurance / Forum Moderator
Amazon.com Wishlist
ernest
Posts: 3
Joined: Fri Oct 10, 2008 6:54 am

Re: Links going to wrong pages

Post by ernest »

so this issue is not solved yet?

Just upgraded from 2.6.3 to latest version and have same problem.

My problem is that I use the phpmyfaq system within another system(using controllers) - when I install the version outside the system it works...

If I add index.php before each /admin/?action then it works as charm... so I added index.php in all required files (search and replace) and tested. I noticed that still some links were not updated so I digged further and noticed that there is an action class file that has to be changed.

What is the quickest way to change ALL links (that do not include the index.php) ?

Thnx in advance

(Hope to see a quick reply on this post)

Raey
Thorsten
Posts: 15724
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Links going to wrong pages

Post by Thorsten »

Hi,

it would be faster to fix the Apache config. :-)

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply