Cause: (in config.php) $config['url_rewriting'] = 'mod_rewrite';
change to $config['url_rewriting'] = 'none';
--------------------------------------------------------------------------
Can not get a link to another page from home-page to work;
first, I created a new page in the top dir called "news",
then i created an internal link through the admin panel (Content/Pages/...) =>not working
then I created <a href=''news">, <a href=''news.htm">, <a href=''news.html">, etc in the home page =>not working.
Both, the "news" page and the link to the "news" page are visible in the menu. => not working
Typing the address into the address bar is also not working.
In all cases I end up in http://localhost/xampp/, instead of
http://localhost/mysite/. (home page resides under http://localhost/mysite/ and loads correctly.
Xampp/vista/home dev./fully open system/everything default
Install path:C:/xampp/htdocs/mysite/
cmsms v1.9.4.1
thanks
internal link [solved]
internal link [solved]
Last edited by samj on Tue Mar 22, 2011 9:01 pm, edited 1 time in total.
Re: internal link
try:
and check Page Alias maybe there not news...
Code: Select all
<a href="{cms_selflink href='news' }">News</a>
Re: internal link
thanks, tried, but no link yet
alias is set to news.
homepage renders under localhost/mysite/
news link shows up under localhost/xampp/
... somehow the filepath...??
also, for some reason, the address bar does nor show a filename when rendering the home page, just the directory and localhost.
thanks
alias is set to news.
homepage renders under localhost/mysite/
news link shows up under localhost/xampp/
... somehow the filepath...??
also, for some reason, the address bar does nor show a filename when rendering the home page, just the directory and localhost.
thanks
Re: internal link
Check the paths in your config.php file.
Nullig
Nullig
Re: internal link
Not sure what to look for, but this is it:
$config['root_url'] = 'http://localhost/mysite';
$config['ssl_url'] = 'https://localhost/mysite';
$config['root_path'] = 'C:\xampp\htdocs\mysite';
$config['admin_dir'] = 'admin';
$config['previews_path'] = 'C:\xampp\htdocs\mysite\tmp\cache';
$config['uploads_path'] = 'C:\xampp\htdocs\mysite\uploads';
$config['uploads_url'] = $config['root_url'] . '/uploads';
The odd thing is that the menu links to "home-page" according to the address bar work, they are loaded under localhost/mysite/ without a filename appended, such as index.htm, or index.php.
The link from the same menus to "news-page" end up under localhost/xammp/(no-filename) according to the address bar, which is one directory UP from where it is supposed to be. It seems something is looking at the wrong directory, maybe.
Install Path: C:\xammp\htdocs\mysite\
thanks
samj
$config['root_url'] = 'http://localhost/mysite';
$config['ssl_url'] = 'https://localhost/mysite';
$config['root_path'] = 'C:\xampp\htdocs\mysite';
$config['admin_dir'] = 'admin';
$config['previews_path'] = 'C:\xampp\htdocs\mysite\tmp\cache';
$config['uploads_path'] = 'C:\xampp\htdocs\mysite\uploads';
$config['uploads_url'] = $config['root_url'] . '/uploads';
The odd thing is that the menu links to "home-page" according to the address bar work, they are loaded under localhost/mysite/ without a filename appended, such as index.htm, or index.php.
The link from the same menus to "news-page" end up under localhost/xammp/(no-filename) according to the address bar, which is one directory UP from where it is supposed to be. It seems something is looking at the wrong directory, maybe.
Install Path: C:\xammp\htdocs\mysite\
thanks
samj