Jump to content

ModRewrite Rules


lordphate

Recommended Posts

Options +FollowSymLinks

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f 

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^([^/]+)/ profiles/index.php?folder=$1&%{QUERY_STRING}$ [L]

RewriteRule (.*)-(.*)-(.*)-(.*)\.html index.php?page=$1&section=$2&category=$3&subcategory=$4&%{QUERY_STRING}$ [L]

RewriteRule (.*)-(.*)-(.*)\.html index.php?page=$1&section=$2&category=$3&%{QUERY_STRING}$ [L]

RewriteRule (.*)-(.*)\.html index.php?page=$1&section=$2&%{QUERY_STRING}$ [L]

RewriteRule (.*)\.html index.php?page=$1&%{QUERY_STRING}$ [L]

 

If i have a regular .html page, it gives me a page not found error.

Link to comment
https://forums.phpfreaks.com/topic/109080-modrewrite-rules/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.