Forum Moderators: phranque
RewriteRule ^([0-9]+)/?$ index.php?cid=$1 [L]is working against it, but I don't know how to fix it, or how to get the
RewriteRule ^companies/\?list=([A-Za-z_]+)?$ index.php?cat=$1 [L] Options +FollowSymLinks
RewriteEngine On
ErrorDocument 404 /404.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([0-9]+)/?$ index.php?cid=$1 [L]
RewriteRule ^companies/\?list=([A-Za-z_]+)?$ index.php?cat=$1 [L]
RewriteRule ^([A-Za-z_]+)/?$ index.php?cat=$1 [L] Options +FollowSymLinks
RewriteEngine On
ErrorDocument 404 /404.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([0-9]+)/?$ index.php?cid=$1 [L]
RewriteRule ^([A-Za-z_]+)/?$ index.php?cat=$1 [L]
#RewriteRule ^([companies]+)/([^/\.]+)/?$ /index.php?cat=$1&subcat=$2 [L]
RewriteCond %{REQUEST_URI} !^companies/
#rewriterule ^companies/(.*)$ /index.php?cat=$1 [L]
#rewriterule companies/(.*)/(.*)/$ /index.php?$1=$2 [L]
RewriteRule /companies//(.*)/(.*)/ index.php/?$1=$2 [L]
#RewriteRule ^companies/([^/\.]+)/?$ /index.php?cat=$1 [L]
ErrorDocument 404 /404.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^companies/
RewriteRule ^companies\/\?(.*)([A-Za-z]+) index.php?cpy=$1 [R=301,L,NC]
RewriteRule ^([0-9]+)/?$ index.php?cid=$1 [L]
RewriteRule ^([A-Za-z_]+)/?$ index.php?cat=$1 [L]
ErrorDocument 404 /404.php
#
Options +FollowSymLinks
RewriteEngine On
#
# Internally rewrite /companies/?list=xyz URL-path requests to /index.php?cat=xyz filepath
RewriteCond %{QUERY_STRING} ^list=([^&]+)$
RewriteRule ^companies/?$ /index.php?cat=%1
#
# Internally rewrite /<letters-and-underscores>/ URL-path requests to index.php?cat=<letters-and-underscores> filepath
RewriteRule ^([a-z_]+)/?$ /index.php?cat=$1 [NC,L]
#
# Internally rewrite /<numbers>/ URL-path requests to /index.php?cid=<numbers> filepath
RewriteRule ^([0-9]+)/?$ /index.php?cid=$1 [L]