Links going to wrong pages
Moderator: Thorsten
Links going to wrong pages
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?
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?
Re: Links going to wrong pages
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
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
amazon.de Wishlist
Re: Links going to wrong pages
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?
Re: Links going to wrong pages
Hi,
please add index.php to the DirectoryIndex: https://httpd.apache.org/docs/2.2/mod/mod_dir.html
bye
Thorsten
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
amazon.de Wishlist
Re: Links going to wrong pages
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.
- 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.
Re: Links going to wrong pages
Hi,
it's the same issue, you need the DirectoryIndex directive in your Apache.
bye
Thorsten
it's the same issue, you need the DirectoryIndex directive in your Apache.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: Links going to wrong pages
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.
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.
Re: Links going to wrong pages
Hi,
I never heard about light speed, do you mean lighttpd?
bye
Thorsten
I never heard about light speed, do you mean lighttpd?
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: Links going to wrong pages
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.
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.
-
- Posts: 200
- Joined: Tue Nov 02, 2010 9:08 am
- Location: United States-Ohio
- Contact:
Re: Links going to wrong pages
litespeed http://www.litespeedtech.com/
phpMyFAQ Quality Assurance / Forum Moderator
Amazon.com Wishlist
Amazon.com Wishlist
Re: Links going to wrong pages
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
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
Re: Links going to wrong pages
Hi,
it would be faster to fix the Apache config.
bye
Thorsten
it would be faster to fix the Apache config.

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