URL Rewriting maps an incoming URL to a modified URL, so that the request is processes as if the original request was made to the modified URL. This is often used to provide more search engine friendly URLs.

learn more… | top users | synonyms (5)

0
votes
0answers
18 views

How to transparently redirect a user without rewriting URL when page does not exist?

I have a node web app with nginx acting as a proxy. Here's the server block for that site If the web app ever goes down, then the error_page directive sends the user off-site, but the url ends up ...
0
votes
1answer
1k views

Nginx Rewrite rules for clean URLs

I want to write nginx rewrite rules for clean URLs. Everytime the user hits; http://domain.com/abc/12/16/abc-def-ghi I need to execute domain.com/abc.php?a=12&b=16&c=abc-def-ghi Now my ...
0
votes
0answers
11 views

How can I reduce the response buffer size of the reverse proxy?

I have configured some reverse proxies in order to map some HTTP audio streams that are normally accessed via different port numbers (e.g. http://fooserver:18030), to URL addresses accessible on ...
-1
votes
2answers
23 views

URL Shortener & Site Redirection on same domain

i have one domain(http://sdm.fm), And I would like it to work as a redirect to http://somdomato.com. But at the same time I would like it to work as a URL shortener. Using phURL. Like: ...
0
votes
1answer
18 views

Nginx and Wordpress: Add php after postname

I'm doing a migration from Apache to Nginx of some Wordpress sites. Now I'm dealing with the URL rewriting, because one of the blogs has the following URL structure: %postname%.php And I'm using ...
0
votes
1answer
26 views

Nginx Extract Top Directory Name From Request URI

I am in the need of being able to use top directory from the $request_uri, for example: /dir/sub/slug -> /dir I read the answer of this question: How to extract Only the file name from the request ...
1
vote
2answers
1k views

DNS (bind) : How do I redirect an http request to a different domain, based on the requested domain

I host my own DNS server and would like to be able to redirect links from within the DNS server so that redirection is seamless. Example: redirect all requests for www.yahoo.com to www.google.com. ...
1
vote
1answer
23 views

Rewrite rule for a url conatining space in its end in web.config?

I am working on a rewriting process. I have been stuck on a point that. <rule name="Uk3" stopProcessing="true"> <match ...
0
votes
0answers
12 views

How to get IIS to accept-encoding: gzip(gfe)

Google's PageSpeed Service forwards requests with the accept-encoding header set to gzip(gfe). Unfortunately IIS chokes on this with the following: HTTP/1.1 400 Bad Request Content-Type: text/html; ...
0
votes
0answers
10 views

IIS7.5 URL Rewrite generating error after importing site

I have two Windows 2008 R2 servers with IIS 7.5. One server has a website configured with URL rewrite rules. I copied the site directory to the second server and set up a new site, using this ...
1
vote
1answer
192 views

Using mathematical operations in IIS 7 Url Rewrite Module

I download the URL Rewrite module for IIS 7. I'm trying to rewrite url of this form: http://www.site.com/1234 to http://www.site.com/234 (get the number and rewrite its modulu by 1000). I saw that ...
0
votes
0answers
9 views

FallbackResource in subdirectory

I manage a large number of PHP applications using front controllers and the following htaccess file: FallbackResource /index.php Yes, that is the entire file (for each application)! However, a few ...
0
votes
2answers
1k views

nginx rewrite rule to convert URL segments to query string parameters

I'm setting up an nginx server for the first time, and having some trouble getting the rewrite rules right for nginx. The Apache rules we used were: See if it's a real file or directory, if so, ...
-1
votes
0answers
9 views

First request to IIS Rewrite URL takes very long to process but application pool recycle ruled out for cause

I have IIS setup to serve a handful of ASP .NET applications and PHP websites and all of them have been configured with proper time-outs and application pool recycle times and are working ...
1
vote
1answer
35 views

Nginx htaccess rewrite specified folder

I tried to convert this htaccess rules to nginx: apache # Necessary to prevent problems when using a controller named "index" and having a root index.php # more here: ...
1
vote
1answer
17 views

Rewrite nginx rule for for a directory to another domain/sub domain

i have setup the following nginx rewrite rule . But doesn't seems to be working, * location /images { rewrite ^(.*)$1 http://sub.domain.com/$1 permanent; } * for images i'm trying to ...
1
vote
1answer
741 views

IIS rewrite rule to check for querystring and add it if its not there

I'm trying to make a IIS URL rewrite rule that appends an URL parameter to the URL. The url parameter is hssc. So, any url that is processed through the server, needs that parameter. Keeping in mind ...
0
votes
1answer
709 views

Nginx case-insensitive reverse proxy rewrites

I'm looking to setup an nginx reverse proxy to make some upcoming server moves and load balanced implementations much easier within our apps. Since our servers are all IIS case sensitivity hasn't ...
0
votes
1answer
24 views

Rewrite rule custom 301 redirection

I have link like this: www.example.com/full-image/folder/subfolder/image-name.jpg-some-custom-keywords.html and I need 301 redirection to url like this: ...
2
votes
1answer
2k views

How to exclude a sub-folder from HTaccess RewriteRule

I have WordPress installed in my root directory, for which a RewriteRule is in place. I need to password-protect a subfolder ("blue"), so I set the htaccess in that folder as such. Problem is that ...
2
votes
3answers
1k views

lighttpd config and rewriting/disabling attempts to access favicon.ico

I've got lighttpd and apache working together on an app I'm building. lighty is serving out static content. However, each time a static asset is requested, I see a not found: favicon.ico message in ...
1
vote
2answers
39 views

Nginx Redirect via Proxy, Rewrite and Preserve URL

In Nginx we have been trying to redirect a URL as follows: http://example.com/some/path -> http://192.168.1.24 where the user still sees the original URL in their browser. Once the user is ...
0
votes
0answers
14 views

Redirect only /index.php page and allow access to all sub directories

I'm running ExpressionEngine (www.mywebsite.com) as the root of my website and Magento in a sub directory (www.mywebsite.com/store) I'm trying to redirect the Magento homepage (and only the homepage) ...
0
votes
1answer
43 views

Nginx second domain rewrite rule

What im trying to do: I have nginx running with wordpress Now i want DOMAIN-2 to redirect to a path of DOMAIN-1 http://DOMAIN-1/Content-for-Domain-2 but not just a simple redirect, it should ...
1
vote
2answers
763 views

How to configure apache as a reverse proxy with the remote server specified in a query string parameter

Problem: I'm trying to configure apache as a reverse proxy where the remove server is specified in a query string parameter. Let's say I'm serving a site at mywebapp.com. If you navigated to ...
1
vote
0answers
26 views

IIS rewrite rules for subdomain and nonexistent files

Setup: I know how to use a rewrite rule to route urls to a routing script such as router.php. I know how to use a rewrite rule to route urls containing a subdomain to subfolders in the document ...
1
vote
1answer
28 views

Is it possible to redirect a url to another url so that users see always the original url?

I have a website whose url is subdomain.example.com but I want users to use a different url to access it, example.com/subdomain. Just to add a bit of context, the two domains are on two separate ...
1
vote
1answer
15 views

apache change proxy request url rewrite

I have problem with proxy requests. I need to enable apache mod_proxy for my subdomains but i forgot to set Allow from mydomain.com, it was Allow from all...Yes, i created open proxy for all world... ...
1
vote
2answers
2k views

URL Rewrite in WebLogic 11g

I have a client running a WebLogic 11g install on a Windows Server machine who wishes to implement Apache-style mod_rewrite-like functionality to translate requests for easyurl.com to ...
1
vote
1answer
958 views

How do I make virtual host DirectoryIndex file appear in the url?

I have setup a virtual host which specifies a default file to load when the URL is called. The problem I have is that I need that default DirectoryIndex file to appear in the URL. So when I go to: ...
2
votes
2answers
989 views

URL Rewriting Problem

I'm trying to rewrite my URL's subdomain. http://username.domain.com will show content of http://www.domain.com/user.php?u=username but URL stay as http://username.domain.com . (I mean url masking) ...
0
votes
1answer
403 views

IIS7: rewriteMap equivalent of exact match rule

I have a site at mydomain.com/mysite and I want to configure a set of redirections in IIS7. To redirect from mydomain.com/mysite/old.aspx to mydomain.com/mysite/new.aspx I can write: ...
0
votes
1answer
707 views

URL Rewrite in IIS7 Web Service - WebService.asmx => WebService in the SOAP doc

I have an IIS7.5 (Server 2008 R2) based web service that I would like to make as independant on the current implementations technology as possible. I am using the URL rewrite module ...
0
votes
1answer
23 views

Apache mod_wl encoding issue for URI part

I'm using Apache2 in combination with mod_wl_20.so to loadbalance to 2 weblogic instances. Apache is listening on 7070. This plugin is partialy removing the encoding of my URI of some searches which ...
0
votes
0answers
26 views

nginx rewrite - proxy if file not exists

I have a local directory (uploads) and an S3 bucket setup. when the user is uploading an image the file is stored on the local directory: /uploads/member_id/image_name and after 30 minutes the system ...
0
votes
1answer
833 views

HAProxy - Perform multiple rewrites based on conditions

I am trying to rewrite a URI as well as a host header based on some conditions. Here is an example of what I'm trying to accomplish: I request http://sub1.example.com/test/files/other if ...
0
votes
1answer
662 views

Cross domain javascript form filling, reverse proxy

I need a javascript form filler that can bypass the 'same origin policy' most modern browsers implement. I made a script that opens the desired website/form in a new browser. With the handler, ...
0
votes
1answer
56 views

rewrite rule nginx to add trailing slash with wordpress and exclude files with extension

I have one installation with wordpress running on nginx with php-fpm. I want to redirect all uris without final slash / to a same uri with /, and i want to exclude all files with extensions. I have ...
0
votes
1answer
19 views

Nginx rewrite and 50x.html

I'm trying to set up a website where writing for example /users/add redirects me to /index.php?table=users&action=add I wrote the following rules: rewrite ^/(.+)/(.+)/$ ...
0
votes
1answer
23 views

Apache - how to use a rewrite rule per vhost?

I have set up a vHost as follows: <VirtualHost *:80> ServerAdmin webmaster@example.com ServerName example.com ServerAlias www.example.com DirectoryIndex index.php DocumentRoot ...
0
votes
0answers
13 views

.htaccess rewrite sub directories as url query [duplicate]

I have .htaccess file in my root directory of the server. All the web pages in the server are in directories, like /Animal/Dog.php (the page can also be used without the extension). There are no ...
-2
votes
1answer
33 views

Nginx - Meaning of the ~ (tilde) in the location block of the nginx.conf?

WHat is the meaning of the tilde after the locaton block in the nginx conf ? for example location ~ ^/download/(.*)$ { alias /home/website/files/$1; } What is the difference between with and ...
1
vote
0answers
7 views

Setting a bail out proxy based on HOST header

We have set up a proxy during our migration phase and saw that people try to abuse it. It is correctly configured and forward only to our application server but these trials charge our main server. ...
0
votes
3answers
2k views

How do I make RewriteCond %{HTTP_COOKIE} match a cookie value exactly? [duplicate]

How do I make my rule match an exact value of a cookie? I've tried: RewriteCond %{HTTP_COOKIE} ^its=me$ [NC] RewriteCond %{HTTP_COOKIE} its=^me$ [NC] RewriteCond %{HTTP_COOKIE} its="me" [NC] ...
0
votes
1answer
21 views

Nginx redirect all subfolders but the folder itself

I have a weird clash of names for a Wordpress installation, and I need to write a couple of Nginx rules to fix it. I used to have my software projects listed in the Wordpress page /projects, with ...
0
votes
0answers
72 views

w3wp.exe crash (rewrite.dll) IIS 7.5

I'm experiencing several crashes in the last days on our production server and I can't figure out how to fix this issue. The server hosts an ecommerce application, written in classic ASP, that runs ...
0
votes
1answer
31 views

nginx rewrite folder http to https

I currently have 2 server containers, 1 for http, and another for the same server but https. I want to merge those containers using Listen 80; and Listen 443 ssl;, which works but I need to rewrite a ...
0
votes
1answer
24 views

activate htaccess only on specific URI

I have an apache webserver running on an ubuntu system. To avoid access for unauthorized users, I have an active .htaccess: AuthType Basic AuthName "own area" AuthUserFile /path/to/.htpasswd require ...
1
vote
2answers
113 views

How to check if mod_alias is enabled?

I want to try mod_alias instead of mod_rewrite for a couple of simple redirect rules, but the directives don't seem to be working when entered in .htaccess. Is it possible that mod_alias is not ...
1
vote
1answer
20 views

Redirect based on parameter

I'm trying to redirect a page based on the parameters passed. I would like redirect rewrite ^/join_trial to /test? permanent; and rewrite ^/join_trial?discount=free(.*) /test2? permanent; The ...