Enable Clean URLs not working

Idweb ltd

New Member
Hi

I have enabled Clean URLs in the admin and updated the menus as instructed.

I now recieve a 404 not found error on the pages.

I can confirm the server has mod_rewrite enabled but I did notice the installation directory doesnt contain a .htaccess file with any rules. Is this the problem? Am I missing this file?

Thanks
Gary
 

Mark

Administrator
Staff member
the .htaccess file is included with every disro, perhaps your zip program is not displaying .htaccess files?

if you cant see it, try creating a new .htaccess and pasting this:
Code:
Options +FollowSymLinks
RewriteEngine on

################ Require ending trailing slash
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5}|/)$
RewriteRule ^(.*)$ %{REQUEST_URI}/ [R=301,L]

################ Beautify dynamic url sets
RewriteRule ^join/ index.php?a=join [L]
RewriteRule ^user_cpl/ index.php?a=user_cpl [L]
RewriteRule ^stats/(.*)/ index.php?a=stats&u=$1 [L]
RewriteRule ^stats/ index.php?a=stats [L]
RewriteRule ^lost_pw/ index.php?a=lost_pw [L]
RewriteRule ^review/(.*)/ index.php?a=rate&u=$1 [L]
RewriteRule ^reviews/(.*)/ index.php?a=stats&u=$1&all_reviews=1 [L]

RewriteRule ^category/(.*)/ index.php?cat=$1 [L]

RewriteRule ^rank/(.*)/(.*)/category/(.*)/ index.php?start=$1&method=$2&cat=$3 [L]
RewriteRule ^rank/(.*)/category/(.*)/ index.php?method=$1&cat=$2 [L]
RewriteRule ^rank/(.*)/(.*)/ index.php?start=$1&method=$2 [L]
RewriteRule ^rank/(.*)/ index.php?method=$1 [L]

RewriteRule ^search/(.*)/(.*)/ index.php?a=search&start=$1&q=$2 [L]
RewriteRule ^search/(.*)/ index.php?a=search&q=$1 [L]
RewriteRule ^search/ index.php?a=search [L]

RewriteRule ^page/(.*)/ index.php?a=page&id=$1 [L]

################ Beautify Mod urls
RewriteRule ^app/(.*)/ index.php?app=$1 [L]
 
Top