All Questions
Tagged with request-uri url-rewriting
6 questions
4
votes
3
answers
2k
views
How to use RewriteRule such that $_SERVER['REQUEST_URI'] is modified too for PHP?
With this .htaccess:
RewriteEngine On
RewriteRule foo/(.*) /foo-$1 # here I tried [L], [PT], [C], etc.
RewriteRule . index.php [L]
I've tried all possible flags for the first RewriteRule, but ...
2
votes
2
answers
5k
views
REQUEST_URI not matching explicit path and filename
Really stumped, because form and syntax seem fine.
RewriteCond for REQUEST_URI is not matching the explicit path and filename. When isolated, RewriteCond for REQUEST_FILENAME matches just fine. I ...
2
votes
0
answers
2k
views
REQUEST_URI rewrite incl. query string
I have a WordPress plug-in and theme that are malforming a URL call to an external css file. I will fix that later, but until then, I need to do a redirect so the css is getting served correctly.
...
0
votes
1
answer
1k
views
How to Change $request_uri to first original, Nginx
Example:
-Step 1. Example Client request: http://domain/123 => (so now in Nginx: $request_uri original == /123)
-Step 2. If i config nginx redirect or something like that http://domain/123 to http://...
0
votes
1
answer
29
views
Nginx rewrite makes me crazy
the URL is:
http://xxxxxx/index.php?route=product/category&path=565
and why the heck the rules below dont work?!?!
THIS - dont work at all:
if ($request_uri ~* "^(.*)product/category&path=...
0
votes
1
answer
2k
views
Rewrite rule and the_request
How to rewrite search/2 from index.php?search="x"&&searc_by="y"&page_no=2?
If I am not wrong %REQUEST_URI is search/2, right? Also what is %THE_REQUEST in this case.
The page where ...