I’ve been trying to get this to work for a couple days, so I was hoping someone here could help me out.
I recently moved servers and addresses and wanted to figure out a way of forwarding without losing my google standing. The issue is, since moving I’ve also changed the way I format my address. I’ve had a script written for me that is supposed to forward to the new location. The old address is formatted like this
but the new address
The script I have is this
RewriteRule ^modsuperstar/entry_([0-9]+).php$ redirect.php?request=$1
which leads to a page called redirect.php with this code
$id = (int)$_GET['request']; // make sure that we're dealing with an integer...
header('HTTP/1.1 301 Moved Permanently');
Now I’ve installed both on my server and it’s done nothing. Originally it yielded a 500 error, but now after deleting it and reinstalling it just loads the page.
I’m not very knowledgable with .htaccess, so any help on what I might be doing wrong here would be appreciated.