ze strony www.mojastrona.pl/index.php?q=wartosc na www.mojastrona.pl/wartosc.html
Zrobiłem coś takiego:
Kod
RewriteCond %{QUERY_STRING} ^q=(.*)$
RewriteRule ^index\.php$ /%1?.html [L,R=301]
RewriteRule ^index\.php$ /%1?.html [L,R=301]
jednak dodaje mi znak pytajnika przed .html
nie ma to jak odpowiedzieć samemu sobie, dla potomnych:
Kod
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteCond %{QUERY_STRING} ^action=(.*)$
RewriteRule ^index\.php$ http://www.mojastrona.pl/%1.html? [L,R=301]
RewriteCond %{QUERY_STRING} ^action=(.*)$
RewriteRule ^index\.php$ http://www.mojastrona.pl/%1.html? [L,R=301]