Answer the question
In order to leave comments, you need to log in
What book/manual to read about mod_rewrite?
Good day.
For the life of me - but I just can't master mod_rewrite apache . Maybe I just want it too fast? Recommend a good, simple and accessible book/guide to learn it.
I also ask you to tell me line by line - what do these redirects do?:
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/var.* [NC]
RewriteCond %{REQUEST_URI} !^/html.* [NC]
RewriteCond %{REQUEST_URI} !^/useruploads.* [NC]
RewriteCond %{REQUEST_URI} ! ^/src.* [NC]
RewriteCond %{REQUEST_URI} !^/kernel.* [NC]
RewriteCond %{REQUEST_URI} !^/index.php.* [NC]
RewriteCond %{REQUEST_URI} !^/goog.* [ NC]
RewriteRule ^(.+)$ /index.php [L]
RewriteCond %{REQUEST_URI} .*\/(.+?)all\.(css|js)$ [NC]
RewriteRule .* %{REQUEST_URI}
RewriteRule .*\/(.+?)all\.(css|js)$ /exec/f_gs/$1.$2
RewriteCond %{REQUEST_URI} ^\/var\/[^\/]+\/[^\_] +\_.+$ [NC]
RewriteRule ^(.+)$ %{REQUEST_URI}
RewriteRule ^\/var\/([^\/]+)\/([^\_]+)\_(.+ )$ /exec/f_gpv/$1/$2/$3/ [L]
RewriteEngine On
RewriteCond %{REQUEST_URI} .*\/(.+?)all\.(css|js)$ [NC]
RewriteRule .* %{REQUEST_URI}
RewriteRule .*\/(.+?)all\.(css |js)$ /exec/f_gs/$1.$2
RewriteCond %{REQUEST_URI} !.*src/.* [NC]
RewriteRule (.+)/ index.php?domain=%{HTTP_HOST}&query=$1 [L]
Answer the question
In order to leave comments, you need to log in
We
are so
kind :)
www.shtogrin.com/library/web/mod_rewrite/doc
sitemaker.ru/technologies/webserver/mod_rewrite
www.egoroff.spb.ru/portfolio/mod_rewrite.html But at the expense of lines of code - there is nothing to tell line by line. RewriteCond checks the request for the presence or vice versa, for the absence of certain phrases, whether it matches the provided regular expression, and if everything is OK, it is redirected.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question