A few reasons why SEO Friendly URLs are not working
Here are some of the most common reason why SEO Friendly URLs are not working for PHPKB knowledge base software on your server (assuming you are running Apache as your web server).
1) Your site is in a sub-directory, or you’re using an Alias, but you did not set RewriteBase in .htaccess file
If your site URL looks like this:
Then you need to add or set RewriteBase! Find the section in your .htaccess file that looks like this:
# Modify the RewriteBase if you are using PHPKB in a subdirectory and the rewrite rules are not working properly.
And change the last line, like this:
Make sure you remove the # symbol in front of RewriteBase, otherwise this will not work.
If RewriteBase section does not exist in your .htaccess file then you need to add it after RewriteEngine on line.
2) .htaccess file did not get uploaded when you uploaded PHPKB package onto server.
Check if the .htaccess file was actually uploaded. It should be in the directory where you uploaded PHPKB (for example: /public_html/phpkb/)
3) Your .htaccess file is corrupt
The .htaccess file is very fussy, and only works if things are in a certain order. If you have tried to add password protection or to block image hotlinking (especially if you used cPanel or some other software to set that up), you have probably corrupted the file. The simple solution is to delete your corrupted .htaccess file, then upload the standard version that comes with PHPKB.
Evidence of a broken .htaccess file can usually be seen in the Apache logs. If you have access on the host, the logs may be at /var/log/apache2/error.log or some variation like that. If you are on a shared host, see your ISPs documentation or helpdesk.
4) .htaccess rules modified
If you have made any changes in the default rules that were present in .htaccess file then please rollback the changes or ask someone to assist you on this, and it is advised not to make any direct changes in .htaccess file until and unless you don’t know what you are really doing, or your site might stop working properly.
5) Check AllowOverride setting in httpd.conf file
Also make sure that you have set AllowOverride to All (as shown below). By default, it is AllowOverride None .
# AllowOverride controls what directives may be placed in .htaccess files.
Important: This change requires a restart of your web server to take effect.
|Posted by: Palwinder Singh - March 18, 2016. This article has been viewed 19869 times.|
|Online URL: https://www.phpkb.com/kb/article/a-few-reasons-why-seo-friendly-urls-are-not-working-72.html|
Powered by PHPKB (Knowledge Base Software)