I'm having problems with my htaccess.
I've got this url: www.mypage.com/search.php?region=EUW&summonerName=Summonername
.
And this in my .htaccess file:
RewriteRule ^(.*)/(.*)/ https://www.mypage.com/search.php?region=$1&summonerName=$2 [L]
When I try to go to www.mypage.com/EUW/Summonername
it returns 404.
Of course I've searched a lot about htaccess url rewrite before make this thread but, nothing works. What's wrong with the code? Cheers.
Edit: I've found the way using: RewriteCond %{SCRIPT_FILENAME} !-d
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteRule ^(.*)/(.*)/?$ search?region=$1&summonerName=$2
Now I can do urls like https://www.mypage.com/text/text
without problems, but I still having a problem. In my form from index.php it still redirecting to https://www.mypage.com/search.php?region=text&summonerName=text
and I don't even don't know why. Some idea? Cheers Ladies and Gentlemans.