Forum Moderators: phranque
<IfModule mod_dir.c>
DirectoryIndex index.php
</IfModule>
<IfModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file \.(html?|txt|css|js|php|pl|jpg|png|gif)$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude mime ^image/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</IfModule>
RewriteEngine On
RewriteBase /
RewriteRule ^install/?$ install/index.php [QSA,L]
RewriteRule ^freshadmin/?$ freshadmin/$1 [QSA,L]
RewriteRule ^i/?$ library/phpThumb/index.php$1 [QSA,L]
RewriteRule ^img/(.+).jpg$ image.php?n=productimage&var1=$1 [QSA,L]
RewriteRule ^recommends/(.+)?$ linkfowarder.php?linkname=$1 [QSA,L]
#RewriteCond %{DOCUMENT_ROOT}/$1 -f
#RewriteCond %{REQUEST_URI} !^min/
#RewriteCond %{REQUEST_URI} !^install/
#RewriteRule ^(.+\.(css|js))$ min/index.php?f=$1 [L,NE]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index.php?q=$1 [QSA,L]
RewriteCond %{HTTP_HOST} ^example\.org\.uk$ [OR]
RewriteCond %{HTTP_HOST} ^www\.example\.org\.uk$
RewriteRule ^car\-roof\-bars$ "http\:\/\/www\.example\.org\.uk\/roof\-bars" [R=301,L]
RewriteCond %{HTTP_HOST} ^example\.org\.uk$ [OR]
RewriteCond %{HTTP_HOST} ^www\.example\.org\.uk$
RewriteRule ^car\-roof\-boxes$ "http\:\/\/www\.example\.org\.uk\/roof\-boxes" [R=301,L]
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5}|/)$ in various places but keep getting 404 errors. <IfModule mod_dir.c>
DirectoryIndex index.php
</IfModule>
<IfModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file \.(html?|txt|css|js|php|pl|jpg|png|gif)$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude mime ^image/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</IfModule>
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index.php?q=$1 [QSA,L]
RewriteRule ^car-roof-bars$ http://www.example.org.uk/roof-bars [R=301,L]
RewriteRule ^car-roof-boxes$ http://www.example.org.uk/roof-boxes [R=301,L]
RewriteRule ^install/?$ install/index.php [QSA,L]
RewriteRule ^freshadmin/?$ freshadmin/$1 [QSA,L]
RewriteRule ^i/?$ library/phpThumb/index.php$1 [QSA,L]
RewriteRule ^img/(.+).jpg$ image.php?n=productimage&var1=$1 [QSA,L]
RewriteRule ^recommends/(.+)?$ linkfowarder.php?linkname=$1 [QSA,L]
#RewriteCond %{DOCUMENT_ROOT}/$1 -f
#RewriteCond %{REQUEST_URI} !^min/
#RewriteCond %{REQUEST_URI} !^install/
#RewriteRule ^(.+\.(css|js))$ min/index.php?f=$1 [L,NE]
<IfModule mod_dir.c>
DirectoryIndex index.php
</IfModule>
<IfModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file \.(html?|txt|css|js|php|pl|jpg|png|gif)$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude mime ^image/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</IfModule>
RewriteEngine On
#RewriteBase /
RewriteRule ^install/?$ install/index.php [QSA,L]
RewriteRule ^freshadmin/?$ freshadmin/$1 [QSA,L]
RewriteRule ^i/?$ library/phpThumb/index.php$1 [QSA,L]
RewriteRule ^img/(.+).jpg$ image.php?n=productimage&var1=$1 [QSA,L]
RewriteRule ^recommends/(.+)?$ linkfowarder.php?linkname=$1 [QSA,L]
#RewriteCond %{DOCUMENT_ROOT}/$1 -f
#RewriteCond %{REQUEST_URI} !^min/
#RewriteCond %{REQUEST_URI} !^install/
#RewriteRule ^(.+\.(css|js))$ min/index.php?f=$1 [L,NE]
RewriteRule ^car-roof-bars$ http://www.example.org.uk/roof-bars [R=301,L]
RewriteRule ^car-roof-boxes$ http://www.example.org.uk/roof-boxes [R=301,L]
RewriteCond %{HTTP_HOST} ^example.org.uk
RewriteRule (.*) http://www.example.org.uk/$1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} (.*)$
RewriteRule ^(.+)/$ http://www.example.org.uk/$1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index.php?q=$1 [QSA,L]
The 500 Error tells you that a module you want to use isn't installed.
Oh yeah, what do you mean when you say "more specific"
RewriteRule ^car-roof-bars$ http://www.example.org.uk/roof-bars [R=301,L]
RewriteRule ^car-roof-boxes$ http://www.example.org.uk/roof-boxes [R=301,L]