Page 1 of 1

[Problem] Domain Rederict & urls

Posted: Fri Nov 27, 2009 7:04 am
by idroom
Hello,

I own 10 domains with 10 CMSMS installations on 1 hosting account. The installations are in different subdirectory's.

Domain: www.088-nummer.eu
Original url: www.088-nummer.eu/088-nummer/

Everything works fine untill you go to the page "Pagina 2" in the menu.
In the browser is the url fine when you go over "Pagina 2" (www.088-nummer.eu/pagina-2) but when you click on it you go to www.088-nummer.eu/088-nummer/pagina-2

Now is my question how i solve this problem? Here my .htaccess file.

Code: Select all

Options +FollowSymLinks
RewriteEngine on
RewriteBase /

# 301 Redirect all requests that don't contain a dot or trailing slash to
# include a trailing slash
# except for form POSTS
RewriteCond %{REQUEST_URI} !/$
RewriteCond %{REQUEST_URI} !\.
RewriteCond %{REQUEST_METHOD} !POST$
RewriteRule ^(.*) %{REQUEST_URI}/ [R=301,L]

# Rewrites urls in the form of /parent/child/
# but only rewrites if the requested URL is not a file or directory
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index.php?page=$1 [QSA]
Some lines out of config.php

Code: Select all

$config['root_url'] = 'http://088-nummer.eu';
$config['root_path'] = '/home/088-nummer.eu/public_html/088-nummer';
$config['url_rewriting'] = 'mod_rewrite';
$config['page_extension'] = '';
I use the last version of CMSMS, does someone know the problem? And the solution?

Re: [Problem] Domain Rederict & urls

Posted: Fri Nov 27, 2009 1:50 pm
by Sonya
idroom wrote: The installations are in different subdirectory's.
Weird, you say that the URL http://www.088-nummer.eu/pagina-2 is fine. This means, that your installation is made in the root directory and not in the subdirectory as stated above.

If your installation is really made in subdirectory then you have to change the config to:

Code: Select all

$config['root_url'] = 'http://088-nummer.eu/088-nummer';
$config['root_path'] = '/home/088-nummer.eu/public_html/088-nummer';
If you have installed it in root directory, then your config should be

Code: Select all

$config['root_url'] = 'http://088-nummer.eu';
$config['root_path'] = '/home/088-nummer.eu/public_html';