Same old question - Rewrite and htaccess - tried everything!

All about webserver configurations, PHP and databases.

Moderator: Thorsten

Post Reply
GoneShootin
Posts: 2
Joined: Fri Jun 22, 2012 9:43 am

Same old question - Rewrite and htaccess - tried everything!

Post by GoneShootin » Fri Jun 22, 2012 9:54 am

First up, let me say how brilliant a system phpMyFAQ is. We use AutoTask at work and this system kicks their KB module all over the place. I'm almost good to go, but missing some trick for url rewriting. Here's what I have:

Server Config
XAMPP: Apache/2.2.21 (Win32) mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 mod_perl/2.0.4 Perl/v5.10.1

Installed Location
http://<url>/knowledgebase

phpMyFAQ Version
phpMyFAQ 2.7.6

.htaccess
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /knowledgebase
</IfModule>

(I have also tried RewriteBase /)

Admin: Enable URL rewrite support?
Ticked

DirectoryIndex
<IfModule dir_module>
DirectoryIndex index.php index.pl index.cgi index.asp index.shtml index.html index.htm \
default.php default.pl default.cgi default.asp default.shtml default.html default.htm \
home.php home.pl home.cgi home.asp home.shtml home.html home.htm
</IfModule>

Requested URL
http://<server>/knowledgebase/content/1/12/en/<name-of-article>.html

Error
Object not found!

The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.

If you think this is a server error, please contact the webmaster.
Error 404
<server>
06/22/12 09:38:37
Having gone through the boards I think I have tried every solution given, but still no joy. Can anyone suggest a way out??

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

Re: Same old question - Rewrite and htaccess - tried everyth

Post by Thorsten » Sat Jun 23, 2012 8:14 am

HI,

are these links working?

http://<server>/knowledgebase/

http://<server>/knowledgebase/ask.html

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

GoneShootin
Posts: 2
Joined: Fri Jun 22, 2012 9:43 am

Re: Same old question - Rewrite and htaccess - tried everyth

Post by GoneShootin » Sat Jun 23, 2012 11:30 am

http://<server>/knowledgebase/
Yes
http://<server>/knowledgebase/ask.html
No

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

Re: Same old question - Rewrite and htaccess - tried everyth

Post by Thorsten » Sat Jun 23, 2012 11:59 am

Hi,

is mod_rewrite enabled in your Apache configuration? Your .htaccess file looks good.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

Markees
Posts: 2
Joined: Thu Nov 29, 2012 9:01 pm

Re: Same old question - Rewrite and htaccess - tried everyth

Post by Markees » Thu Nov 29, 2012 9:03 pm

GoneShootin wrote:
http://<server>/knowledgebase/
Yes
http://<server>/knowledgebase/ask.html
No
Hi!

Same problem here! The ask.html is not working here. Is there a fix yet? I could not find anything. My provider is telling me that there is no problem and my htaccess seems to be ok. What am I doing wrong?

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

Re: Same old question - Rewrite and htaccess - tried everyth

Post by Thorsten » Fri Nov 30, 2012 9:09 am

Hi,

which error do you get? A 404?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

Post Reply