A
A
Anton Melentiev2016-05-05 20:17:56
URL Handling
Anton Melentiev, 2016-05-05 20:17:56

RewriteRule htacces, what's wrong?

There is like this:
http://site.ru/index.php?page=fundblok
It is necessary like this:
http://site.ru/fundblok.htm
I do this:

RewriteRule ^([^/\.]+)/?.htm$ ./index.php?page=$1 [QSA]

This doesn't work either:
RewriteRule ^(.*)/?.htm$ /index.php?page=$1 [QSA]
One person advised me to switch hosting from Windows to Unix, could this be the reason? I do not understand...

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question