I originally had my Drupal site installed in a sub-directory on my hosting account (e.g. sitename.com/portfolio), but I wanted the site to be in the root directory. So, I basically just moved all of the files from the sub-directory into the root.
This caused some issues with not being able to navigate to any pages within my site or accessing any admin link in Drupal's back end. I moved all files from my Drupal installation back into the sub-directory to see if it would fix the problem, but I'm still unable to navigate to any page other than the home page of my Drupal site.
I tried pulling down an older version of the file tree from the day before all this happened, but the problem still exists.
Any ideas?
Comments
The first thing I'd try is
The first thing I'd try is clearing the cache by going to Configuration > Performance and clicking on "Clear all caches". If that doesn't work, take a look at your settings file root > sites >default > settings.php. Down around line 270 there are instructions for manually setting the base url.
That's the thing... I can't
That's the thing... I can't access any part of the back-end of my site. So clicking Configuration would bring me to a 404 not found page. Same with every other link on the site including /user.
I tried setting the base URL to http://www.mysite.com/portfolio (which is where the site is located) but the issue still persists.
Ensure that you copied the
Ensure that you copied the .htaccess file from the webroot over to the new filetree. Depending on how you made the transfer, hidden files (which include .htaccess) are not automatically moved. If this file does not exist, you will only be able to access the top page.
Jaypan We build websites
It's there. The only thing
It's there. The only thing the root .htaccess contains is a redirect rule that I'm using temporarily to the sub-directory where the site is located. The .htaccess file in that drupal directory just has the RewriteBase / rule
=-=
do uncleanr urls work? yoursite.com/?q=user/login for example?
There is your problem. You
There is your problem. You need a Drupal .htaccess file or clean URLs will not work. Download a fresh one from Drupal.org and put it in your webroot.
Jaypan We build websites
D'oh! That explains it. That
D'oh! That explains it. That was most definitely the issue. Thank you for your time.
=-=
This question is better served in the post installation forum. Please edit the opening post and move it. Thanks.