swapnet
August 2nd, 2008, 01:42 AM
hullo,
Following is the content of my htaccess file
Options +FollowSymlinks
rewriteEngine on
RewriteRule ^.htaccess$ - [F]
RewriteCond %{REQUEST_URI} !rss
RewriteCond %{REQUEST_URI} !admin
RewriteCond %{REQUEST_URI} ^.+/(.+)/
RewriteRule ^([^/]+)/$ ?action=$1 [QSA]
RewriteCond %{REQUEST_URI} ^.+/(.+)/(.+)/
RewriteRule ^([^/]+)/([^/]+)/$ ?action=$1&p=$2 [QSA]
RewriteCond %{REQUEST_URI} ^.+/(.+)/(.+)/(.+)/
RewriteRule ^([^/]+)/([^/]+)/([^/]+)/$ ?action=$1&p=$2&k=$3 [QSA]
This script is perfectly working in my local server. but I tried uploading it into the live website (I placed a copy of the htaccess in the root (/) and public_html (with other files) and it isn't working at all.
I get a 404 error (if I type say, products/resellers/ in place of ?action=products&p=resellers) saying that the file is not found.
Following is the content of my htaccess file
Options +FollowSymlinks
rewriteEngine on
RewriteRule ^.htaccess$ - [F]
RewriteCond %{REQUEST_URI} !rss
RewriteCond %{REQUEST_URI} !admin
RewriteCond %{REQUEST_URI} ^.+/(.+)/
RewriteRule ^([^/]+)/$ ?action=$1 [QSA]
RewriteCond %{REQUEST_URI} ^.+/(.+)/(.+)/
RewriteRule ^([^/]+)/([^/]+)/$ ?action=$1&p=$2 [QSA]
RewriteCond %{REQUEST_URI} ^.+/(.+)/(.+)/(.+)/
RewriteRule ^([^/]+)/([^/]+)/([^/]+)/$ ?action=$1&p=$2&k=$3 [QSA]
This script is perfectly working in my local server. but I tried uploading it into the live website (I placed a copy of the htaccess in the root (/) and public_html (with other files) and it isn't working at all.
I get a 404 error (if I type say, products/resellers/ in place of ?action=products&p=resellers) saying that the file is not found.