viktorross2019-10-16 17:25:23
Apache HTTP Server
viktorross, 2019-10-16 17:25:23

3000 entries in htaccess, is it possible?

hello, I want to add more than 3 thousand such entries to the htaccess file

RewriteRule ^alejsk /q/?country=Алтайский\ край&region=алейск [nc,qsa]

to shorten links with cities, otherwise I don’t know how to do it, is it
possible to do this or are there better options? by the way, it works every other time for some reason, it starts to confuse some pages

Answer the question

In order to leave comments, you need to log in

2 answer(s)
SagePtr, 2019-10-16

Perhaps this function will be more efficient in your case: https://httpd.apache.org/docs/2.4/rewrite/rewritem...
I didn’t use it myself, so I can’t say for it, according to the description, what is in your task and it is necessary

xmoonlight, 2019-10-16

Make a route point to the PHP script and process all requests in it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question