I'm logged in, but no longer able to get to my /admin section or any other page on either the HTTP or HTTPS version of my site. Error message:The requested URL /user/1 was not found on this server.

Some background information leading up to this: I'm using Drupal 6.12, Clean URLs and a self-signed SSL certificate. A week or so ago I enabled the Secure Pages module, but the radio button to enable secure pages was greyed out and couldn't be selected. I also got an error when trying to get to the secure version of my website. Searching the Drupal forums seemed to point me to my web site host configuration, so I requested their assistance in determining if PHP and .htaccess are configured properly on my site. They checked my domain and found that my website was not using a dedicated IP address.

They changed my site to use a (new dedicated) IP address, had me create a new self-signed certificate, which they installed "through WHM". They said the "issue has now been fixed", but it's left my site totally broken.

I'm not sure what to try next, so any help will be greatly appreciated.

Comments

Steve Halleman’s picture

I had a similar problem. The cause was different but the symptoms are familiar. Clear URLs can cause a problem sometimes. You might try using the equivalent URL as if Clean URLS is not enabled, e.g. example.com/?q=admin.

Regards,

Steve Halleman

pobster’s picture

It sounds to me like you no longer have a .htaccess file? Either that else it's borked??? (Permissions or the rewrite rules?)

Pobster

PatW’s picture

You were correct. After following Steve's advice for getting back into my website, I disabled Clean URLs. The radio button was then greyed out so I could no longer enable it again. There was also a new message that my server was not configured for Clean URLs. I checked my server and my web host apparently renamed it htaccess,backup when they installed my certificate. I moved another copy of htaccess out there again and my enable radio button appeared once again.

All appears to be functioning properly - thanks!

PatW’s picture

Steve,

Thank you so much! I was able to get into the admin area of my site with ?q=admin, but I could not get to any other pages until I used ?q=admin/settings/clean-urls to get to Clean URLs and disable them. I am now able to get to all pages on HTTP and HTTPS and everything appears to be functioning fine now.

I'm a bit confused about the CLEAN URLs. Do I need them enabled?

Pat

Steve Halleman’s picture

Pat,

You don't strictly need them, but if you want search engine bots to index your site, sometimes the ?q= construct gets in the way.

Where I have had problems like yours is restoring from a backup. I took a backup of the database to use on my local test site and whatever URL I tried to use, I got the home page. I did the same thing you did to get to the Clean URL page to disable them and then re-enable them. If you ever want to make a backup, be sure to disable the Clean URLs before you do. You'll save yourself some headaches when you restore.

Regards,

Steve

Steve Halleman

PatW’s picture

Thanks for all the information. I really appreciate it.

Pat

PatW’s picture

More problems... I've discovered that when I try to make changes to my theme by reconfiguring, or make changes to permissions, my changes aren't being saved. Wondering if this has something to do with the htaccess file?