skip to Main Content

htaccess infinite loop issue – PHP

I have run into an issue with my .htaccess file. The file changes the ugly URL such as http://localhost/news.php?article_slug=example-1 to http://localhost/news/example-1 This works perfectly, but when I go to http://localhost/news i get a 404 error. Within news.php I have a…

VIEW QUESTION

How should I mount a host httpd.conf file into an Apache httpd Docker container?

I'm spinning up a docker container using: docker run -d --add-host=host.docker.internal:host-gateway --name=apache --restart always -e PUID=1000 -e PGID=1000 -e TZ=Europe/London -p 80:80 -v /share/CACHEDEV1_DATA/Container/apache/config/httpd.conf:/usr/local/apache2/conf/httpd.conf -v /share/CACHEDEV1_DATA/Container/apache/config/httpd-vhosts.conf:/usr/local/apache2/conf/extra/httpd-vhosts.conf httpd:latest Unfortunately, the httpd.conf file within the container does not match the local file…

VIEW QUESTION
Back To Top
Search