0
votes
1answer
80 views

apache - query string rewrite rule adds percentage symbol

I've set up a rule to rewrite a query string. Although the redirection is correctly performed, a % character is appended to the rewritten query portion of the URL, like so: ...
1
vote
1answer
352 views

Nginx redirect all old domain subdomains to new one

I had a very long domain, so I decided to change it to a shorter and more friendly one. But since I have a lot of subdomains (in fact, I have a subdomain wildcard), I wanted to keep the subdomain ...
0
votes
1answer
503 views

Ngnix Rewrite - If URL contains

I'm having a small issue - my error log is filling up with requests to a directory folder on my site (but with added data that shouldn't be there). http://example.com/the-directory/undefined ...
4
votes
1answer
96 views

Apache MatchRedirect exception regex

I want to redirect any URL that is Https and hasn't start with "system_" to the same URL with http. for exapmle for this url : https://exsite.tld/some/thing/that/not/start/with/pattern to : ...
1
vote
1answer
430 views

Nginx - Redirect request by GET parameters pattern

One of my servers was attacked by DDoS a couple of days ago and it lasted for 4 days. Below are the logs snippet of the request: 36.224.180.253 - - [14/May/2013:03:11:46 +0800] "GET ...
1
vote
1answer
53 views

Mod_Rewrite Rule (or an Alternative) For Reorganizing Directory Structure [closed]

The website I work on had these two pages in the past: http://www.africananimals.com/stripes/zebras and http://www.africananimals.com/news/zebras (These are not actual domain names, just ...
0
votes
1answer
54 views

htaccess not properly rewriting urls

This is a bit of a weird one. I'm doing some work on a server, and I need rewrite rules for directories that actually exist (in some cases, they are more than one level deep) At the moment my ...
0
votes
2answers
369 views

lighttpd redirect certain links to certain urls

Could someone tell me how / why is this redirect not working? $HTTP["host"] =~ ".*\\.mydomain\\.com" { url.redirect = ( "/index\.php\?pg=mysql" => ...
1
vote
1answer
175 views

How to redirect all subdomains do one domain in Apache config file without specifying domain name?

I want to make general rule for all my domains, so I don't have to specify each of them individually. I have these two lines in my Apache config file: RewriteCond %{HTTP_HOST} ^domain\.com ...
0
votes
2answers
344 views

Nginx: wild card dns redirect URL to subdomain

I'm trying to redirect the following URL Http://example.com/category/something To redirect to Http://something.example.com/category/something Where "something" could be anything. I've already ...
0
votes
1answer
151 views

Apache redirect to another domain all URLs, except for ones starting with substring

Can anyone help me achieve a redirect in Apache from http://subdomain.example.com/ to http://example.com/ for all URLs, EXCEPT the ones starting with "files/"? Thank you
1
vote
2answers
1k views

Simple URI redirection / alias in Nginx

Please, how can I make this simple operation in Nginx: I wish that every requests for uris like: http://example.com/adm or: http://example.com/adm Goes to the wordpress login page: ...
0
votes
2answers
2k views

Make exception to whole-site RedirectMatch rule

We have this RedirectMatch rule to move clients on the SSL enabled site while maintaining the path they're trying to access: Redirectmatch permanent (.*) https://www.foobar.com$1 and it is working ...
1
vote
2answers
525 views

.htaccess 301 redirect with regex

I am trying to fix a lot of errros in our old website regarding thing with product pages having multiple URLs associated with a single product. I am hoping that I can use regular expressions in with ...