Hi,
This is my first post, cmsms looks really useful to me, now I'm learning about it.
I've already set up latest cmsms version.
Website I'm experimenting on is http://www.spanishtranslation.ws/
Link on the menu bar points to http://www.spanishtranslation.ws/index.php/home
Why can't link point directly to base url?
Also, when I click on "home" I get a 404 error, why is this happening?
Thanks in advance for your help!
Can't access homepage.
Re: Can't access homepage.
Open up config.php. Change the internal_pretty_urls and use_hierarchy options to false. That should solve the problem.
-
alfredo
Re: Can't access homepage.
Hi again,
I started installation and everything up from scratch.
Now, when I scroll over navigation menu links I see pretty urls such as http://www.spanishtranslation.ws/content_types.html
But when I click on them, I get a 404 error.
I've uploaded a htaccess file that looks like this:
------------------------------------------------------
#php_flag magic_quotes_gpc Off
#php_flag register_globals Off
#php_flag session.use_trans_sid Off
# Make sure you have Options FollowSymLinks
# and Allow on
RewriteEngine On
#Rewrites page.shtml as index.php?page
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteCond %{REQUEST_FILENAME} !-d [NC]
RewriteRule ^(.+)$ index.php?page=$1 [QSA]
------------------------------------------------------
This is how my url settings look:
#------------
#URL Settings
#------------
#Show mod_rewrite URLs in the menu?
$config['assume_mod_rewrite'] = true;
#Extension to use if you're using mod_rewrite for pretty URLs.
$config['page_extension'] = '.html';
#If you don't use mod_rewrite, then would you like to use the built-in
#pretty url mechanism? This will not work with IIS and the {metadata} tag
#should be in all of your templates before enabling.
$config['internal_pretty_urls'] = false;
#If you're using the internal pretty url mechanism or mod_rewrite, would you like to
#show urls in their hierarchy? (ex. http://www.mysite.com/parent/parent/childpage)
$config['use_hierarchy'] = false;
#If using none of the above options, what should we be using for the query string
#variable? (ex. http://www.mysite.com/index.php?page=somecontent)
$config['query_var'] = 'page';
-------------------
I also cleaned my browser's cache but problem persists.
What am I doing wrong?
Thanks for your help!
I started installation and everything up from scratch.
Now, when I scroll over navigation menu links I see pretty urls such as http://www.spanishtranslation.ws/content_types.html
But when I click on them, I get a 404 error.
I've uploaded a htaccess file that looks like this:
------------------------------------------------------
#php_flag magic_quotes_gpc Off
#php_flag register_globals Off
#php_flag session.use_trans_sid Off
# Make sure you have Options FollowSymLinks
# and Allow on
RewriteEngine On
#Rewrites page.shtml as index.php?page
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteCond %{REQUEST_FILENAME} !-d [NC]
RewriteRule ^(.+)$ index.php?page=$1 [QSA]
------------------------------------------------------
This is how my url settings look:
#------------
#URL Settings
#------------
#Show mod_rewrite URLs in the menu?
$config['assume_mod_rewrite'] = true;
#Extension to use if you're using mod_rewrite for pretty URLs.
$config['page_extension'] = '.html';
#If you don't use mod_rewrite, then would you like to use the built-in
#pretty url mechanism? This will not work with IIS and the {metadata} tag
#should be in all of your templates before enabling.
$config['internal_pretty_urls'] = false;
#If you're using the internal pretty url mechanism or mod_rewrite, would you like to
#show urls in their hierarchy? (ex. http://www.mysite.com/parent/parent/childpage)
$config['use_hierarchy'] = false;
#If using none of the above options, what should we be using for the query string
#variable? (ex. http://www.mysite.com/index.php?page=somecontent)
$config['query_var'] = 'page';
-------------------
I also cleaned my browser's cache but problem persists.
What am I doing wrong?
Thanks for your help!
Re: Can't access homepage.
rename htaccess to .htaccess (notice the dot in the beginning, its important
)
-
alfredo
Re: Can't access homepage.
Added the dot and still not working.tsw wrote: rename htaccess to .htaccess (notice the dot in the beginning, its important)
Also tried changing file extension from .txt to nothing (don't know if this means anything) and still not working.
Re: Can't access homepage.
Anything on the server logs?
You can always change your settings to normal urls by setting $config['assume_mod_rewrite'] = false;
You can always change your settings to normal urls by setting $config['assume_mod_rewrite'] = false;

