Adsense ?
That's one thing to know with AdSense, Google is grabbing URLs from there and that's why for example some end up finding Google trying to load private URLs.
The redirection you're talking about is on the top of my TODO list

, it's rather easy to implement it directly in the php files so I never really bother about doing it through .htaccess, but it could en up being a little faster so why not.
Till then, you could put this in your portal.php file :
- Code: Select all
$uri = $_SERVER['REQUEST_URI'];
if (strpos($uri, "portal.php") && !strpos($uri, "?") {
header(Status: 301 Moved Permanently, FALSE, 301);
header("Location: "http://www.example.com/");
}
The strpos are used for velocity.
Now this code would be better if you add :
- Code: Select all
@session_write_close();
@session_start();
before the first header() if you are using php sessions, and, as it could be the case, a little :
- Code: Select all
if ( !empty($db) ) {
$db->sql_close();
}
right after the php sessions close line if your file is using phpbb sessions
++