cancel
Showing results for 
Search instead for 
Did you mean: 
Go to solution
Highlighted

.htaccess file 301 Redirects not woking

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.

1 REPLY 1
Super User I
Super User I
Solution

Re: .htaccess file 301 Redirects not woking

Hello @ambruslaci and thank you for reaching out to the community. 

 

Check this article out and see if this helps you some. 


Very Respectfully,

Drew Davis
Navy Veteran and Entrepreneur | GoDaddy Pro user | "Proud to be serving others!"

*** Please note that I offer free advice on this forum. Please feel free to give me KUDOS on this topic/discussion; mark my comment as ACCEPTED SOLUTION if you believe I've helped solved your issue. Thanks! ***