Forum Moderators: phranque
[24/Dec/2011:01:10:58 +0000] [alert] [client 98.211.45.225] /usr/home/xyz/www/htdocs/.htaccess: RewriteRule: cannot compile regular expression '^([a-zA-Z0-9_\\-/]+)\\/([a-zA-Z0-9_\\-/]+)\\/([a-zA-Z0-9_\\-/]+)$'\n
[24/Dec/2011:01:10:58 +0000] [alert] [client 98.211.45.225] /usr/home/xyz/www/htdocs/.htaccess: RewriteRule: cannot compile regular expression '^([a-zA-Z0-9_\\-/]+)\\/([a-zA-Z0-9_\\-/]+)\\/([a-zA-Z0-9_\\-/]+)$'\n
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-zA-Z0-9_\-/]+)\/([a-zA-Z0-9_\-/]+)\/([a-zA-Z0-9_\-/]+)$ index.php?page=$1&action=$2&id=$3
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-zA-Z0-9_\-/]+)\/([a-zA-Z0-9_\-/]+)$ index.php?page=$1&action=$2
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?page=$1
^([a-z/]+)/([a-z/]+)/([a-z/]+)$ example.com/a/b/c/d/e/f/g ($1) / ($2) / ($3) to be: (a/b/c) / (d/e/f) / (g) or would you want (a) / (b) / (c/d/e/f/g) (a/b) / (c/d) / (e/f/g) or what? [edited by: tedster at 6:58 pm (utc) on Dec 24, 2011]
[edit reason] member requested fix [/edit]
would you want ($1) / ($2) / ($3) to be:
(a/b/c) / (d/e/f) / (g) or would you want (a) / (b) / (c/d/e/f/g)
or perhaps (a/b) / (c/d) / (e/f/g) or what?
[edited by: tedster at 7:00 pm (utc) on Dec 24, 2011]
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)$ index.php?page=$1&action=$2&id=$3
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)$ index.php?page=$1&action=$2
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?page=$1
[24/Dec/2011:17:39:39 +0000] [error] [client 98.211.45.225] mod_rewrite: maximum number of internal redirects reached. Assuming configuration error. Use 'RewriteOptions MaxRedirects' to increase the limit if neccessary.
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)$ index.php?page=$1&action=$2&id=$3
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)$ index.php?page=$1&action=$2
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?page=$1
[24/Dec/2011:17:39:39 +0000] [error] [client 98.211.45.225] mod_rewrite: maximum number of internal redirects reached. Assuming configuration error. Use 'RewriteOptions MaxRedirects' to increase the limit if neccessary.
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)$ index.php?page=$1&action=$2&id=$3 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)$ index.php?page=$1&action=$2 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?page=$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)$ index.php?page=$1&action=$2&id=$3 [L]
There's nothing else in the .htaccess file. The above quoted lines are the only thing in the file.