Images only loading on front-page //Wordpress
Posted by: Cha0zb0rn (---.dynamic.kabel-deutschland.de)
Date: October 12, 2020 12:23AM

Edit: Not a wamp problem, can be deleted.

Hello,

I'm rather new to webdevelopment and building my first page in wordpress. I use wamp 3.2.3 and wordpress 5.5.1 on windows 10 pro.

I have a very weird issue and I actually don't know if it's wamp or wordpress related.

I just finished my front-page.php and it works perfectly fine.

As soon as I try to access another sub-site (localhost/foobar) my css still loads correctly, yet the images don't. I tried to hardcode the pathes to the images within the template but the error persists, thus leading me to think I havent configured something in Wamp yet which I don't know about.

When I inspect the site via dev tools the correct pathes are displayed as well.

The htaccess is generated dynamicly by wordpress as it seems (at least thats whats written within the htacesss file) but I really have no clue about htaccess in general.


I'd really appreciate if somebody could give me a little hint as I feel pretty lost right now.

Thanks in advance!



Edited 2 time(s). Last edit at 10/12/2020 12:53AM by Cha0zb0rn.

Options: ReplyQuote
Re: Images only loading on front-page //Wordpress
Posted by: Otomatic (Moderator)
Date: October 12, 2020 10:43AM

Hi,

This is a problem with WordPress and more precisely because you have not installed WordPress in a VirtualHost, as with all hosters.

See:
The need for Virtual Host
and
Wampserver 3 - Create or add a VirtualHost
and
Why to create a VirtualHost BEFORE installing a CMS

------------------------------------------------------------------------------------------------------------
Wampserver 3.2.3 32 bit - Apache 2.4.46a - PHP 7.4.11…5.6.40 - MySQL 5.7.31 - MariaDB 10.5.6
Wampserver 3.2.3 64 bit - Apache 2.4.46a - PHP 7.4.11…5.6.40 - MySQL 5.7.31/8.0.21 - MariaDB 10.5.6
PhPMyadmin 5.0.2 - MysqlDumper 1.24.5
on W10 and W7 Pro 64 bit
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons
« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »

Options: ReplyQuote


Sorry, only registered users may post in this forum.