What should the .htaccess file look like?
I need an apache .htaccess file that forwards all requested files, including images, to index.php with n as url parameter containing the requested filename
for example
e.com/image.png --> e.com/index.php?n=image.png
Is that even possible?
Moin,
if I understand it correctly, you want index.php load the respective images? As mentioned in the example, you have given a GET variable in the URL, so you want to load the image in PHP.
If that’s the right way to come. Otherwise, my proposed solution would be unnecessary.
MfG
I want to use the php datei to determine where the image should come from so that in the php datei then a forwarding will take place later on via header(), but in order to get there I have to forward all inquiries to the php datei
Okay, so you want to load several resources in your PHP? Because if so, it would be a little pointless by GET. If you want, we can talk about discord. Then I can help you much better.
If you like to send me a friendship request here, I will give you my ID.
MfG
You couldn’t see any pictures in your website.
All images would lead to the index.
You sure you want that.