Reputation: 69
I don't know why it doesn't work but what I want:
Old links: http://krater.hu/krater.php******* new links: http://regi.krater.hu/krater.php*******
My code is (But i was trying with a lot of things and still not working):
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^/krater\.php(.+)$ http://regi.krater.hu/krater.php$1 [R=301,L]
</IfModule>
Can someone help me out please? Thank you!
Upvotes: 1
Views: 105
Reputation: 786101
You can use this rule on your old host:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^(krater\.php(.*))$ http://regi.krater.hu/$1 [R=301,L]
</IfModule>
.+
after .php
Upvotes: 1