By nicoloconte on
Hi,
I moved my drupal site from my notebook (MacOS) to another pc (Win). I uploaded my database to the new pc and I changed the settings in "settings.php". I can view the home page but every links doesn't work, I'm anable to get every page (olso the admin page).
Do you know how can I solve it? I maked sone mistakes?
Thanks a lot.
Nicolo'
PS Sorry for my poor english
Comments
=-=
clear the cache tables in the database and ensure $base_url in settings.php is either not set at all, ie: # in front of the line or that it is set correctly.
If http://example.com/user
If http://example.com/user fails but http://example.com/?q=user works in the new PC, then you need to configure Apache to support clean URLs on that PC.
Make sure that you have Drupal's .htaccess file and that you don't have an
AllowOverride Nonein httpd.conf which causes .htaccess files to be ignored.If the problem is not clean URLs, examine the URLs of the links to see if you notice anything unusual (like what VM said).
Ok, now when I click on a
Ok, now when I click on a link this on redirect me to the home page! Every link have this behaviour...
You already said that. Read
You already said that. Read the replies more carefully. Look at the link's URL and try adding
?q=in it to see what happens.copy drupal .htaccess file into root directory
I was also stuck on this issue.
I copied the .htaccess file (usually this is hidden in UNIX based system and while copying we miss out this).
and pasted it into my project root directory i.e. myprojectdirectory/here
reloaded the page. I was able to browse then.
Thank you.
>Make sure that you have Drupal's .htaccess file and that you don't have an AllowOverride None in httpd.conf which causes .htaccess files to be ignored.
setting the httpd.conf file to
AllowOverride Allmade it so pages show up when you click a link, but you don't navigate to the page. I tested it and added the ?q= code as suggested. It does resolve. What I didn't see in the thread is what to do specifically about that... is there a workaround or do you just have to disable sef urls locally when working on the site? Im using path auto, so when I was creating internal links inside of the node body areas.. I am referencing the links generated by path auto. (maybe there a better way to setup internal node links?)I would prefer to make localhost resolve the sef urls if at all possible.. this would allow me to test the links locally before deployment. Is this possible?
Amend .htaccess
I checked the other suggestions, but found that I had to amend the .htaccess file, under the section 'Various re-write rules' to include the line:
RewriteBase /drupal_iff
as my local drupal installation was at c:/xampp/htdocs/drupal_iff
As is noted in the .htaccess file:
"# Modify the RewriteBase if you are using Drupal in a subdirectory or in a
# VirtualDocumentRoot and the rewrite rules are not working properly.
# For example if your site is at http://example.com/drupal uncomment and
# modify the following line:
# RewriteBase /drupal"