Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.
# BEGIN Plogger
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_URI} !(\.|/$)
RewriteRule ^.*$ http://www.planet-templates.com%{REQUEST_URI}/ [R=301,L]
RewriteCond %{HTTP_HOST} !^www [NC]
RewriteRule ^(.*)$ http://www.planet-templates.com/$1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^.*$ - [S=2]
RewriteRule feed/$ plog-rss.php?path=%{REQUEST_URI} [L]
RewriteRule ^.*$ index.php?path=%{REQUEST_URI} [L]
</IfModule>
# END Plogger
// if mod_rewrite is on and we're not embedded, remove the file basename
if ($config['use_mod_rewrite'] == 1 && $config['embedded'] == 0) {
$config['baseurl'] = 'http://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF']).'/';
// otherwise just use our cleaned up version of $_SERVER['PHP_SELF'] from plog-globals.php
} else {
$config['baseurl'] = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'];
}
// if mod_rewrite is on and we're not embedded, remove the file basename
if ($config['use_mod_rewrite'] == 1 && $config['embedded'] == 0) {
$config['baseurl'] = 'http://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF']);
// Verify URL for a trailing slash. If not, add one.
if ($config['baseurl']{strlen($config['baseurl'])-1} != '/') {
$config['baseurl'] = $config['baseurl'].'/';
}
// otherwise just use our cleaned up version of $_SERVER['PHP_SELF'] from plog-globals.php
} else {
$config['baseurl'] = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'];
}
if ($config['baseurl']{strlen($config['baseurl'])-1} != '/')
if ($config['baseurl']{strlen($config['baseurl'])-1} != '\\')
echo $_SERVER['PHP_SELF']'
? Is there a backslash there?
$_SERVER['PHP_SELF']
dirname($_SERVER['PHP_SELF'])
$config['baseurl'] = str_replace('\\', '/', $config['baseurl']);
$config['baseurl'] = 'http://'.$_SERVER['HTTP_HOST'].str_replace('\\', '/', dirname($_SERVER['PHP_SELF']));
$config['baseurl'] = 'http://'.$_SERVER['HTTP_HOST'].realpath(dirname($_SERVER['PHP_SELF']));
// if mod_rewrite is on and we're not embedded, remove the file basename
if ( $config['use_mod_rewrite'] == 1 && $config['embedded'] == 0) {
$config['baseurl'] = 'http://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF']);
$config['baseurl'] = str_replace('\\', '/', $config['baseurl']);
// Verify URL for a trailing slash. If not, add one.
if ($config['baseurl']{strlen($config['baseurl'])-1} != '/') {
$config['baseurl'] = $config['baseurl'].'/';
}
// otherwise just use our cleaned up version of $_SERVER['PHP_SELF'] from plog-globals.php
}
else {
$config['baseurl'] = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'];
}
realpath(dirname($_SERVER['PHP_SELF']))
gives just C:\
1 to 20 of 20