Can't access homepage.

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
alfredo

Can't access homepage.

Post by alfredo »

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!
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Re: Can't access homepage.

Post by Ted »

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.

Post by alfredo »

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!  :)
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

Re: Can't access homepage.

Post by tsw »

rename htaccess to .htaccess (notice the dot in the beginning, its important  :o )
alfredo

Re: Can't access homepage.

Post by alfredo »

tsw wrote: rename htaccess to .htaccess (notice the dot in the beginning, its important  :o )

Added the dot and still not working.

Also tried changing file extension from .txt to nothing (don't know if this means anything) and still not working.  :(
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

Re: Can't access homepage.

Post by tsw »

Anything on the server logs?

You can always change your settings to normal urls by setting $config['assume_mod_rewrite'] = false;
Locked

Return to “CMSMS Core”