views:

228

answers:

3

I've just downloaded my drupal site.

I can view the home page and the content seems to be read from the db. However i can't get to

http://localhost:81/admin or http://localhost:81/aboutus

I have enabled "mod_rewrite"

i can view content such as "?q=node/266"

I've setup virtual host

ServerName localhost DocumentRoot "C:/wamp/www/mySite/"

+2  A: 

Try going to http://localhost:81/?q=admin/settings/clean-urls and see if Clean URLs is enabled or disabled. If disabled, try enabling, and if you can't, then chances are you'll have to edit your .htaccess and uncomment the

# RewriteBase /

...line or the...

# RewriteBase /drupal

line (changing the last one from /drupal to /mySite).

If you're still having trouble, try going through the handbook guide to Clean URLs.

Mike Crittenden
It might be enabled right now so be sure to disable it or the links on your site will always return 404 until you can get the .htaccess figured out. Also, you might be missing a .htaccess file as sometimes when copying the contents of a directory over something like WinSCP, they get left out.
Chris Ridenour
thanks mike, i'm working locally, i don't have an htaccess file. i can't get to "http://localhost:81/?q=admin/settings/clean-urls" it just 404's.
frosty
to expand, http://localhost:81/?q=admin works but http://localhost:81/?q=admin/content does not. When i login it redirects me to "/admin/content" which 404's
frosty
Just installed an htaccess file- I uncommented "RewriteBase /" from the htaccess. - I have enabled "mod_rewrite"but i can get to http://localhost:81/?q=admin/but not http://localhost:81/?q=admin/contentbasically i can't login to edit the niceurl
frosty
A: 

Had a similar issue recently.. Check your 'variables' table in the database for any references to the server path, chances are you'll have to update them to reflect the new path ( for example from /home/mySite/ to C:/wamp/www/mySite/ ).

Also worth trying: truncating all the cache tables and can you get to the login prompt via http://localhost/mySite/user/login ?

middric
A: 

It's your apache config. I run into this problem all the time on fresh apache installs. If you open your apache.conf or virtual host conf file you'll need to change AllowOverrides in your < Directory > from none to all for example.

<Directory />
Options Includes
AllowOverride All
</Directory>

unn