O
O
Otrivin2017-05-04 18:03:01
htaccess
Otrivin, 2017-05-04 18:03:01

Where can I find a manual for building htaccess?

Hello!
Is there any manual for htaccess? Not just a collection of solutions, but an explanation of how to correctly assemble a regular expression, what type of condition to use in a particular case (request_uri or query_string, for example), how to specify a wildcard pattern and how to form the final wildcard pattern?
Often there is a need to edit htaccess, but there is no deep knowledge of the principles of drafting rules - I get by with templates from the Web. Sometimes there are situations when I can not make a rule. For example:
http://site.com/blog/?limitstart=0
Here's how to cut off the limitstart parameter from such urls?
Tried at random

RewriteCond %{REQUEST_URI} /(.*)\?limitstart=0 [NC]
RewriteRule .* /$1 [L,R=301]

so that the solution is universal for any category, but, alas, it does not work - I do not know the htaccess logic at the proper level.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
Otrivin, 2017-05-04
@Otrivin

The only 2 sensible articles I could find - max22.ru/server/htaccess
webcache.googleusercontent.com/search?q=cache:PfDO...
--------------
https://www.imbf.org/seo-webmaster/htaccess-sintak...

E
Erkin Pardayev, 2017-05-04
@ErkinPardayev

httpd.apache.org/docs/current/howto/htaccess.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question