All Questions
4
questions
0
votes
1
answer
87
views
htaccess rewrite rule to a specific PHP page doesn't work
I have the following code in my .htaccess file, placed in the root of my Ubuntu 22.04 instance:
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{...
0
votes
1
answer
42
views
How to redirect search.php?query=test&search=1&s=1 to /query/test
I have tried other things, but I cannnot get it to work, when I go to the main website, (index.php is just a include of search.php) it will send me to this /query/search.php/search.php/search.php/...
0
votes
1
answer
1k
views
Apache redirect Absolue url to relative url
So I want to load a web-app from a subfolder. Current configuration looks like this
<VirtualHost *:80>
ServerName YOUR IP ADDRESS/DOMAIN
ServerAdmin webmaster@localhost
...
6
votes
1
answer
6k
views
Apache's mod_rewrite and PHP's REQUEST_URI variable
I have an issue with Apache passing to the PHP $_SERVER['REQUEST_URI'] variable the URL after it has been rewritten rather than the original one requested.
I am doing this rewriting because I had a ...