I have a website hosted at GoDaddy: www.immi.hu
I try to do 301 redirects from old URL to the new One with RewriteRule.
OLD from: www.immi.hu/hu/3d-latvanytervezes-tanfolyamok/3d-lakberendezo-tanfolyam.html
NEW to: www.immi.hu/3d-latvanytervezes/3d-lakberendezo-tanfolyam
My .htaccess file looks like this:
RewriteEngine on
RewriteBase /
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule \.(xml|ico|eot|svg|ttf|woff|otf|js|css|map|gif|jpe?g|png)$ - [L]
RewriteRule ^(.*) index.php?url=$1 [L,QSA]
### REDIRECTS STARTS HERE ###
RewriteRule ^hu/3d-latvanytervezes-tanfolyamok/3d-lakberendezo-tanfolyam.html$ /3d-latvanytervezes/3d-lakberendezo-tanfolyam [R=301,NC]
### REDIRECTS END ###
Any advice? Thanks in advance.
Solved! Go to Solution.
Hello @ambruslaci and thank you for reaching out to the community.
Check this article out and see if this helps you some.
Hello @ambruslaci and thank you for reaching out to the community.
Check this article out and see if this helps you some.