Good afternoon, help build the rule RewriteRule

I need that when accessing the server at the address - site / 1 and before site / 9999999, site / a and before site / z (that is, the entire Latin alphabet, maybe a combination of type "frt").

Everything sent to one page, but if you open another page of the site, for example .html or php, then this page opens.

  • sort of done right - RewriteEngine On RewriteBase / RewriteRule ^ [a-z0-9] $ lilurl.php [L] Correct what's wrong - vits
  • Correcting: Your expression allows only one character after the slash. It should be like this: ^ [a-z0-9] + $ - ReinRaus
  • did for this site - like-all.ru Your method did not help. I did it my own way. but + added on the advice, I forgot about it) - vits

1 answer 1

made from comments:


RewriteEngine On RewriteBase / RewriteRule ^[a-z0-9]+$ lilurl.php [L]