Links going to wrong pages

Please report bugs here!

Moderators: jason102178, Florian, Thorsten, JochenS

Links going to wrong pages

Postby ddn » Mon Jul 11, 2011 10:14 pm

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?
ddn
 
Posts: 3
Joined: Mon Jul 11, 2011 10:00 pm

Re: Links going to wrong pages

Postby Thorsten » Wed Jul 13, 2011 6:48 am

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
Thorsten
 
Posts: 12197
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq

Re: Links going to wrong pages

Postby ddn » Tue Aug 23, 2011 6:46 pm

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?
ddn
 
Posts: 3
Joined: Mon Jul 11, 2011 10:00 pm

Re: Links going to wrong pages

Postby Thorsten » Wed Aug 24, 2011 6:35 am

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
Thorsten
 
Posts: 12197
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq

Re: Links going to wrong pages

Postby ccccd » Sun Sep 11, 2011 11:23 pm

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.
ccccd
 
Posts: 4
Joined: Sun Sep 11, 2011 11:09 pm

Re: Links going to wrong pages

Postby Thorsten » Mon Sep 12, 2011 7:05 am

Hi,

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

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Thorsten
 
Posts: 12197
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq

Re: Links going to wrong pages

Postby ccccd » Mon Sep 12, 2011 8:43 pm

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.
ccccd
 
Posts: 4
Joined: Sun Sep 11, 2011 11:09 pm

Re: Links going to wrong pages

Postby Thorsten » Tue Sep 13, 2011 9:28 am

Hi,

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

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Thorsten
 
Posts: 12197
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq

Re: Links going to wrong pages

Postby ccccd » Fri Sep 16, 2011 1:44 am

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.
ccccd
 
Posts: 4
Joined: Sun Sep 11, 2011 11:09 pm

Re: Links going to wrong pages

Postby jason102178 » Fri Sep 16, 2011 5:11 am

phpMyFAQ Quality Assurance / Forum Moderator
Amazon.com Wishlist
jason102178
 
Posts: 194
Joined: Tue Nov 02, 2010 9:08 am
Location: United States-Ohio

Re: Links going to wrong pages

Postby ernest » Tue Jan 31, 2012 11:27 am

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
ernest
 
Posts: 3
Joined: Fri Oct 10, 2008 6:54 am

Re: Links going to wrong pages

Postby Thorsten » Tue Jan 31, 2012 11:50 am

Hi,

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

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Thorsten
 
Posts: 12197
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq


Return to Bug reports

Who is online

Users browsing this forum: No registered users and 0 guests