Answer the question
In order to leave comments, you need to log in
How to remove "25" or completely "%25" from site url?
Tell me how to remove 25
or completely %25
from the url of the site? For example, I make a page on the site to lose weight by 50% ?, the address is as follows kak-pohudet-na-50%25?
:.
In the webmaster, such a page is indexed as: kak-pohudet-na-50%?
but when I go to this address, it opens: 400 Bad Request
And the re-bypass of such pages also fails, writes: Failed to bypass
I want the address to become like this: kak-pohudet-na-50
? or, if the question is longer, it would look like this: kak- pohudet-na-50-i ne-umeret
?
.htaccess looks like this:
Options -Indexes
DirectoryIndex index.php
RewriteEngine On
#RewriteBase /
RewriteCond %{REQUEST_URI} ^(.*)//(.*)$
RewriteRule . %1/%2 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.*$ index.php?qa-rewrite=$0&%{QUERY_STRING} [L]
Answer the question
In order to leave comments, you need to log in
RewriteCond %{THE_REQUEST} //
RewriteRule .* /$0 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.*$ index.php\?qa-rewrite=$0\&%{QUERY_STRING} [L]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question