0
votes
1answer
159 views

How to tell Nginx to not rewrite URL's in selected location

I am writing some PHP CMS code with a clean url implementation in Nginx. To improve security of my code I want to rewrite all of the requests in my root directory / using the following type: rewrite ...
0
votes
2answers
222 views

Cron getting timeout when attempting to access url (wget).

I'm sure this is simple and I've been digging but no answer is quite as specific as I need it to be. The goal is easy, have Cron hit a url on my server every 5 minutes. All of that is set up and ...
0
votes
0answers
56 views

Nginx URL rewrite / mask

Currently, my $_GET parameters are ordered alphabetically (a, b, c, d, etc...) For example: https://domain.com/?a=Menu1&b=Menu2&c=Menu3 What I want is this URL: ...
1
vote
0answers
47 views

Paths Generated by PHP Applications Incorrect In Fedora nginx php-fpm Setup

I have been having several issues with certain PHP apps lately on my Fedora nginx + php-fpm setup. I originally had this issue with Owncloud, and created a question, without much luck, but I am ...
0
votes
0answers
498 views

How to prevent IIS 7 to partially decode REQUEST_URI?

I have IIS 7 on Windows Server 2008, with PHP support (5.3.15) I have noticed a difference compared to an Apache 2 environment, with the content of PHP variable $_SERVER['REQUEST_URI']. Basically, ...
0
votes
1answer
43 views

.htaccess rewrite

I want to change URLs like below: http://www.gsmsite.nl/zakelijk/product/phone?b=met-internet-250plus To: http://www.gsmsite.nl/zakelijk/product/phone?bundel=met-internet-250plus How ...
1
vote
2answers
926 views

Structuring an nginx config for static content and php

I'm trying to write an Nginx config with the following semantics, expressed in hopefully-readable psuedo-config: location /dir1/ /dir2/ { if (matches a .php file) { serve with php } else if ...
0
votes
1answer
39 views

Server responce 200 to url that does not exist

I have such records in my Apache 2.2 one of the virtual hosts access_log file: GET /index.php/image-gallery/animals/57-wobbegone?c=2&s=8&p=384&l=ru HTTP/1.1" 200 19549 "-" "Mozilla/5.0 ...
0
votes
4answers
2k views

NGINX Remove index.php /index.php/something/more/ to /something/more

I'm trying to clean urls in NGINX using framework DooPHP. This => - http://example.com/index.php/something/more/ To This => - http://example.com/something/more/ I want to remove (clean url) the ...
1
vote
2answers
862 views

Blocking a specific URL by IP (a URL create by mod-rewrite)

We need to block a specific URL for anyone not on a local IP (anyone without a 192.168.. address) We however cannot use apache's <Directory /var/www/foo/bar> Order allow,deny Allow from ...
1
vote
1answer
72 views

turning urls into subdomains?

i have this url http://www.example.com/user.php?user=solomon i want to convert this into http://solomon.example.com how can i do this!! thanks :)) p.s. im using plesk
0
votes
1answer
95 views

Using Mod_rewrite to rewrite all requests with subdomains, what am I doing wrong?

I am trying to make it so that all requests that use a subdomain are rewritten in such a way that they are sent to the server as "regular" request without the subdomain. I have created the mod_rewrite ...
0
votes
1answer
4k views

.htaccess rewrite rule for CSS request

Good Morning, I am trying to create RewriteRule for all request for css file within my website to css/filename.css. The procedure is all css files within my website store only in ...
1
vote
5answers
3k views

How do I create subdomain names dynamically?

I would like to be able to create and remove subdomain name dynamically using scripting languages such as PHP, Python, Perl or others. I am using Apache as a web server Example: ...