Please tell me how, and is it possible to rewrite with .htaccess, this is the address
index.php#test1
In this /test1
For example, this is how it corresponds with index.php
to just index
RewriteEngine On RewriteRule ^index$ /index.php [NC,L]
Even so you can
RewriteEngine On RewriteRule ^index$ /index.php?param=123 [NC,L]
But he doesn't want to
RewriteEngine On RewriteRule ^index$ /index.php#test1 [NC,L]
I read that you can like this
RewriteEngine On RewriteRule ^index$ /index.php%23test1 [NC,L]
Put% 23 in the place of the hash, as # in the .htaccess file is a comment. But in that case the server’s answer is
The requested URL /index.php3test1 was not found on this server.
Prompt the correct decision if it exists. Or some interesting article.
NE [No Escape]
flag for theRewriteRule.
- Costantino Rupert