Firstly http.conf:
Code: Select all
LoadModule rewrite_module modules/mod_rewrite.so
...
<Directory />
Options FollowSymLinks
AllowOverride All
Order deny,allow
Deny from all
</Directory>
Code: Select all
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^([a-zA-Z0-9]+)\/([a-zA-Z0-9]+)/$ index.php?sort=$1&direction=$2 [NC,R,L]
RewriteRule ^([a-zA-Z0-9]+)\/([a-zA-Z0-9]+)/$ ?sort=$1&direction=$2 [NC,R,L]
RewriteRule ^([a-zA-Z0-9]+)\/$1/$2 index.php?sort=$1&direction=$2 [NC,R,L]
RewriteRule ^([a-zA-Z0-9]+)\/$1/$2 ?sort=$1&direction=$2 [NC,R,L]
RewriteRule ^([a-zA-Z0-9]+)/$ index.php?sort=$1 [NC,R,L]
RewriteRule ^([a-zA-Z0-9]+)/$ ?sort=$1 [NC,R,L]eg: http://localhost/index.php?sort=class&direction=asc
http://localhost/class/asc
Can anyone suggest why i just can't get my .htaccess file to work properly?