Community

only frontpage showing all other pages 404

I need help, only the frontpage of my drupal site is showing, all other pages are 404.
Many ppl have had this problem but no consensus on solution. It is one or combination of four things.

a. conf file in /etc/httpd/conf.d/mynamed.conf (httpd restart has no errors and subdomain is pointing to folder correctly)

b. settings.php in drupal sites/default (changed to current database, user, password but still not sure about base url )

c. .htaccess (haven't made any changes here yet)

d. drupal settings "clean-urls" (set enabled before export import and could be real culprit but cannot access admin to set off so will have to reinstall sites and database from other server with clean-urls disabled or find a command other than drush to do it)

Comments

=-=

As drupal is already installed, this post is better served in the post installation forum. please edit and move the post. Thanks.

to figure out if clean urls is the issue, browse with unclean urls. yorusite.com/?q=admin

you can disable clean urls in the database by setting it to 0 in the variable table and clearing cache

IIRC drush can set clean urls to off with drush vset clean_url 0

thanks

how can i set it off with unix command?

do you think that is the problem?

Solved

As I suspected clean-urls the culprit. Couldn't clear it in mysql database so luckily was able to go to existing live site server and disable clean-urls then export sql
and drop table on new server then create database and import new sql and all pages are coming up now.

Question remains, can I now enable clean urls? Don't want to have to do the above over again if not.

=-=

clean urls is dependent on apache mod_rewrite being enabled and the proper changes made to the environment: http://drupal.org/getting-started/clean-urls

nobody click here