• Hi there, I have my own Linux server running all my wp installs, which works well but when visiting clients, I have copies of the sites on my laptop, which is XP SP2. I have installed Apache, php, mysql etc.. and it works, albeit a bit slowly, Does the job, though , if there’s no internet access, as I can’t obviously access the sites live.

    Thing is, though, I have themes and some other hacks which reference things like images and css absolutely (/images or /standard.css, for example) on my server but when I copy them to my laptop (into different folders), I have to do a lot of manual editing (take off the leading slashes), to get them to display properly.

    This is because, of course, it is looking at the localhost (htdocs) as the root folder. For example, one site on my server is in a folder called and8798. Run it on my laptop and it won’t display images (/picture.jpg) because it thinks it is in /localhost/picture.jpg, rather than in /localhost/and8798/picture.jpg.

    I could configure apache to think that localhost/and8798 is the root folder but that would only work for that one website, and I have at least 20! Every time I download new versions, I have to do a massive amount of manual editing.

    What I would like to know is if any kind soul can suggest a way that I can somehow “fake” each folder and fool apache into thinking that each folder is the root? That is not very well explained but if anybody does understand what I am saying, I would be extremely grateful for any suggestions.

    Many thanks

    Clive

Viewing 1 replies (of 1 total)
  • What’s not clear is if you are running different copies of WordPress from each of these subdirectories on your set-up. If yes, you should reference all urls to site-based material like so in your themes:

    <?php bloginfo('url'); ?>/picture.jpg

    bloginfo('url') will print out the url of the present blog.

Viewing 1 replies (of 1 total)
  • The topic ‘laptop WP emulation’ is closed to new replies.