>> Added ".html" the transition to the main page does not work. "/.html" "...404 Not Found..."
>>> It doesn't seem to possible to rewrite /.html at all. That is probably related to .html is treated as a hidden file by Apache (similar to .htaccess) and these file can't be accessed. I don't know if there's any way to change this.
[ external image ] Здравствуйте.
Простите, но я передумал, так:
"/Welcome-to-CMSimple_XH.html" - красивее
Code: Select all
function a($i, $x) {
global $sn, $u, $cf, $adm;
if ($i == 0 && !$adm) {
if ($x == '' && $cf['locator']['show_homepage'] == 'true') {
return '<a href="' . $sn . $u[0] . '.html">';
}
}
return isset($u[$i]) ? '<a href="' . $sn . $u[$i] . '.html' . (!empty($x) ? '?' . $x : '') . '">' : '<a href="' . $sn . '.html' . (!empty($x) ? '?' . $x : '') . '">';
}
http://foxpro.maxim.zp.ua/saytostroenie ... -urls.html
[ external image ] Hello.
Sorry, but I changed my mind, so:
"/Welcome-to-CMSimple_XH.html" - beautiful
Code: Select all
function a($i, $x) {
global $sn, $u, $cf, $adm;
if ($i == 0 && !$adm) {
if ($x == '' && $cf['locator']['show_homepage'] == 'true') {
return '<a href="' . $sn . $u[0] . '.html">';
}
}
return isset($u[$i]) ? '<a href="' . $sn . $u[$i] . '.html' . (!empty($x) ? '?' . $x : '') . '">' : '<a href="' . $sn . '.html' . (!empty($x) ? '?' . $x : '') . '">';
}
http://foxpro.maxim.zp.ua/saytostroenie ... -urls.html