I am testing a free script in this location http://moviejunkyard.com/test/test/ Problem is whenever I click on a joke or joke categories It gives this error Not Found The requested URL /test/test/joke-archives-4.html was not found on this server. I believe this problem is due to some error in my .htaccess file. The current contents of .htaccess are RewriteEngine on RewriteBase / RewriteRule ^/test/test/viewjokes-(.*).html /test/test/viewjokes.php?id=$1 [L,QSA] RewriteRule ^/test/test/joke-archives-(.*).html /test/test/joke-archives.php?cat_id=$1 [L,QSA] RewriteRule ^/test/test/joke-archives-(.*)-(.*).html /test/test/joke-archives.php?cat_id=$1&start=$2 [L,QSA] RewriteRule ^joke-archives-(.*)-(.*).html /joke-archives.php?cat_id=$1&start=$2 RewriteRule ^links(.*).html /links.php?start=$1 RewriteRule ^help\.html$ /help\.php RewriteRule ^links\.html$ /links\.php RewriteRule ^privacy\.html$ /privacy\.php RewriteRule ^feedback\.html$ /feedback\.php RewriteRule ^disclaimer\.html$ /disclaimer\.php Dont know what to do.
try this: RewriteRule ^test/test/viewjokes-(.*).html /test/test/viewjokes.php?id=$1 [L,QSA] RewriteRule ^test/test/joke-archives-(.*).html /test/test/joke-archives.php?cat_id=$1 [L,QSA] RewriteRule ^test/test/joke-archives-(.*)-(.*).html /test/test/joke-archives.php?cat_id=$1&start=$2 [L,QSA] i.e. remove slash before /
Try below if your htaccess file is on /test/test folder: RewriteRule ^joke-archives-([0-9]+).html joke-archives.php?cat_id=$1 [L,QSA] RewriteRule ^joke-archives-([0-9]+)-([0-9]+).html joke-archives.php?cat_id=$1&start=$2 [L,QSA]