Deprecated: Function set_magic_quotes_runtime() is deprecated in /home2/creabros/public_html/creabros.fi/textpattern/lib/txplib_db.php 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:
http://www.creabros.fi/cms redirects correctly

added simple php script

<?php
header("Status: 301 Moved Permanently");
header("Location: http://www.creabros.fi?". $_SERVER['QUERY_STRING']);
?>

hopefully everybody now finds the content they are looking for.

Kalle Kuismanen

Random, Tools

---

Comment

Commenting is closed for this article.

---