mod_rewrite help (can't get it to work)

Serees

Registered
Mar 27, 2008
1
0
51
Hi, i have the folowing rewrite rules in my .htaccess file
Code:
Options +FollowSymlinks
RewriteEngine On
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} -d [OR]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} -f
RewriteRule ^(.*)$ - [L,NS]
RewriteCond %{QUERY_STRING} !^$
RewriteRule ^/(.*)/(.*)/$ /index.php?&page=$1&sub=$2&%{QUERY_STRING} [L,NS]
RewriteRule ^/(.*)/(.*)/$ /index.php?&page=$1&sub=$2 [L,NS]
RewriteCond %{QUERY_STRING} !^$
RewriteRule ^/(.*)/$ /index.php?&page=$1&%{QUERY_STRING} [L,NS]
RewriteRule ^/(.*)/$ /index.php?page=$1  [L,NS]
RewriteRule ^/([^/]*)/(.*)$        /$2     [NS,N]
The rules are correct they have been working for ages on my old machine. But since I migrated to C-Panel i can not get them to work...

Any help?

Thanks
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,212
13
313
Houston, TX
cPanel Access Level
Root Administrator
Long story short, you should contact your hosting provider regarding this issue as they can assist you with the specific reason these rules may not be working by checking their logs or referring you to logs you may be able to review yourself.