SEO

From EQdkp Plus
Jump to: navigation, search

To remove the index.php from the EQdkp Plus URL, you have to do the following things:

  • Go to the EQdkp Plus Settings and activate option "Remove index.php from URLs"
  • Adjust your .htaccess file

Adjusting the .htaccess file

If you don't have a .htaccess file in the root directory of EQdkp Plus (where the index.php is located), you have to create one. Please note that the default.htaccess file is just an example and not a real .htaccess file, because of the filename.

You have to add the following lines to this file:

<IfModule mod_rewrite.c>
	RewriteEngine On
	RewriteBase /eqdkp

	RewriteCond %{REQUEST_FILENAME} !-d
	RewriteCond %{REQUEST_FILENAME} !-f
	RewriteRule (.*)$ index.php/$1 [L]
</IfModule>

Also, you have to adjust the RewriteBase Path to your EQdkp Plus Installation. If your EQdkp Plus is reachable at http://domain.com, you have just to insert / here, if it's reachable at http://domain.com/eqdkp/ you have to insert /eqdkp here.

Common Errors

This section describes common errors with the SEO and removing of the index.php from the URLs.

No input file specified

Some servers do ot like the / in the RewriteRule (at some fastCGI Server), resulting in an Error "No input file specified". But you can activate a Compatibility Mode for that, introduced with EQdkp Plus 2.1. Open the config.php in the Root-Directory, and add the following definition before the closing ?>

define('URL_COMPMODE', true);

Adjust the .htaccess as following:

<IfModule mod_rewrite.c>
	RewriteEngine On
	RewriteBase /eqdkp

	RewriteCond %{REQUEST_FILENAME} !-d
	RewriteCond %{REQUEST_FILENAME} !-f
	RewriteRule ^(.*)$ index.php?$1 [L,QSA]
</IfModule>

Wrong redirection

Please check, if you have adjusted the RewriteBase to the correct value, fitting to your EQdkp Plus Installation. If you have installed EQdkp Plus to the root-Folder of your Domain, just use / als RewriteBase.