By jnycz on
I moved a working copy from a live server to a local server (for a design) and I'm having trouble getting it to work. The main issue is that I get 404 when I click on a link unless I use the ?q= before the node name. I cannot login as admin because I get a 404. This sounds like a simple thing to fix but I cannot figure it out. I ran the update.php a few times, its weird how that url works without the ?q=. The site and all its modules are up to date. And if it matters I built the theme using the zen starterkit. Anyway any help would be great!
Thanks.
Comments
check if you have uploaded
check if you have uploaded .htaccess file... usually when you upload files the .htaccess doesn't get uploaded ....
Yes the .htaccess file is
Yes the .htaccess file is there.
After some more research I
After some more research I think this could be a clean urls issue. If I could login as admin I could toggle that to see if it corrected the issue. Since I can't is there a way to toggle it in the database?
May be, may be not
In the "variable" table (Drupal 6), there is a entry named clean_url with a value of
s:1:"1";when clean urls are enabled. If you don't mind fiddling with the database directly you can try replacing this value. I am not sure if the information is stored somewhere else and changing this value will result in inconsistencies, so do it at your own risk.If you look at your database and see that value, that means that the clean urls are set, but for one reason or another, the mod_rewrite module is not enabled in Apache.
If you are using WAMP server for your local copy, it is easy, just check "rewrite_module" and restart Apache. If you are using Apache under Linux, or XAMPP then you would probably need to modify the configuration files.
Thanks for the help
Fixed