I'm currently tearing my hair out over this. I have around 900 urls which need specific 301 redirects, for example
old_url.php is now new-url.html
Can someone please tell me the correct format/syntax to use when inserting a 301 redirect manually into a .htaccess file on a server using cPanel?
I've spent about a week handcrafting these in a txt document after spending hours grilling the support staff at bluehost on the correct syntax but when I insert these lines of code into my .htaccess file I get server 500 errors so I've clearly got the syntax and placement of the redirects wrong. Here is how my 900 lines of code look.
Redirect 301 /user.php?op=login&enable_back= http://www.loopgalaxy.com/my-account
I've spent hours looking for forum posts that might solve this but they are a few years old and I guess things have changed. My other concern now is that even if I find some syntax that works it's not going to be easy to
edit my code to what it needs to be. I can't face manually editing all 900 of these again
Any advice is greatly appreciated.:p
old_url.php is now new-url.html
Can someone please tell me the correct format/syntax to use when inserting a 301 redirect manually into a .htaccess file on a server using cPanel?
I've spent about a week handcrafting these in a txt document after spending hours grilling the support staff at bluehost on the correct syntax but when I insert these lines of code into my .htaccess file I get server 500 errors so I've clearly got the syntax and placement of the redirects wrong. Here is how my 900 lines of code look.
Redirect 301 /user.php?op=login&enable_back= http://www.loopgalaxy.com/my-account
I've spent hours looking for forum posts that might solve this but they are a few years old and I guess things have changed. My other concern now is that even if I find some syntax that works it's not going to be easy to
edit my code to what it needs to be. I can't face manually editing all 900 of these again
Any advice is greatly appreciated.:p