url rewriting
Posted: Mon Jul 27, 2009 2:15 am
Hello,
I have a classifieds website written in PHP.
I had the following code in my .htaccess :
#Options +FollowSymLinks
RewriteEngine on
RewriteRule index/a/(.*)/b/(.*)/ index.php?a=$1&b=$2
But this didn't maKe my site SEO friendly.Can anyone please help.
(My web host has the following in FAQ:
.htaccess file - the .htaccess file is used to override certain Apache rules/directives. There are directives that cannot be overridden and every attempt to do so will lead to '500 Internal Server Error'.
Options +ExecCGI -FollowSymLinks +Includes +IncludesNOEXEC +SymLinksIfOwnerMatch - those directives are pre-defined. If the .htaccess file you wish to use has any of those present you must comment them by placing the # symbol in-front of the directive.
- '500 Internal Server Error' will show up if an attempt is made to change PHP values (turn on/off) through an .htaccess file. Such lines should be commented and the desired change must be made by editing /sys/php4/php.ini or /sys/php5/php.ini depending which PHP version is set as global for the whole account - this can be checked by clicking on the PHP Settings icon in the control panel. )
thanks
I have a classifieds website written in PHP.
I had the following code in my .htaccess :
#Options +FollowSymLinks
RewriteEngine on
RewriteRule index/a/(.*)/b/(.*)/ index.php?a=$1&b=$2
But this didn't maKe my site SEO friendly.Can anyone please help.
(My web host has the following in FAQ:
.htaccess file - the .htaccess file is used to override certain Apache rules/directives. There are directives that cannot be overridden and every attempt to do so will lead to '500 Internal Server Error'.
Options +ExecCGI -FollowSymLinks +Includes +IncludesNOEXEC +SymLinksIfOwnerMatch - those directives are pre-defined. If the .htaccess file you wish to use has any of those present you must comment them by placing the # symbol in-front of the directive.
- '500 Internal Server Error' will show up if an attempt is made to change PHP values (turn on/off) through an .htaccess file. Such lines should be commented and the desired change must be made by editing /sys/php4/php.ini or /sys/php5/php.ini depending which PHP version is set as global for the whole account - this can be checked by clicking on the PHP Settings icon in the control panel. )
thanks