Hi,

I want to install a copy of my drupal site hosted at my ISP (http://www.urlaubimpanorama.at) on my local computer. Therefore I installed XAMPP, backupped my Webspace and MySQL database from the ISP and installed it on my computer. Because I want to have more than 1 development environments for different customer websites in my XAMPP-installation I copied the backup into a subdirectory: "C:\xampp\htdocs\urlaubimpanorama".

When calling "http://localhost:81/urlaubimpanorama/" the website is displayed, but no images on nodes are displayed (all theme images are displayed) and all links on nodes do not work. They are configurated e.g. as "?q=node/12" and now targeting to "http://localhost:81/?q=node/12" (should be "http://localhost:81/urlaubimpanorama/?q=node/12"). The apache module mod_rewrite is activated and works correctly.

Now I edited the .htaccess-file under "C:\xampp\htdocs\urlaubimpanorama" and changed the line # RewriteBase /drupal first to RewriteBase /urlaubimpanorama and then to RewriteBase /urlaubimpanorama/. But both versions do not work. The links are staying incorrect.

Where is my fault?
Regards

Comments

dksdev01’s picture

It may happen that url has been written with /

Check out any kind of url that is hardcoded or start with /.

Drupal automically check folder so you should not have any issue installing in subfolder.

-Deepak

fdq’s picture

hi Deepak,

thanks for your response. As I commented my original posting the all internal links are starting with "/" (e.g. "/?q=node/12"). When I try to delete the "/" from the beginning it is there again when I have saved the page.

On the other hand, when I edit a link in a drupal site installed in an subdirectory, the name of the subdirectory is added: e.g. my edited link is "?q=node/12", the subdirectory is "urlaubimpanorama", then the link is saved as "/urlaubimpanorama/?q=node/12".

Any ideas?

fdq’s picture

Sorry for my fault, but the links are not configurated as "?q=node/12", but as "/?q=node/12".