Deprecated: Function set_magic_quotes_runtime() is deprecated in /home2/creabros/public_html/ on line 14
CreaBros Oy: Redirecting with PHP

Redirecting with PHP

Feb 13, 01:09 PM

Just looked at the statistics for this page and noticed that it was generating ton of internal errors. Sorry about that. As I moved the blog to another server I removed the subdirectory CMS. I figured I’ll just link the CMS via symbolic link to the root, but I guess that didn’t really work for queries with parameters.

Now the url: redirects correctly

added simple php script

header("Status: 301 Moved Permanently");
header("Location:". $_SERVER['QUERY_STRING']);

hopefully everybody now finds the content they are looking for.

Kalle Kuismanen

Random, Tools



Commenting is closed for this article.