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)

2
votes
0answers
62 views

Weird nginx configuration: multiple rewrite rules doesnt work

I have an application which knows how to prepare some special images and its running on a separate machine (i'm trying to use it as image server). When these images are prepared and served by ...
2
votes
0answers
108 views

How to organize millions of static files to serve efficiently over the web?

I'd like to create a service to serve several hundred thousand smaller files (from 5kb to 500kb, mostly around 10-100kb). Think of it as a kind of gravatar.com which serves those little avatar pics on ...
2
votes
0answers
147 views

URL Rewrite in Apache + Tomcat set up with change in web application context

How to make URL http:/hostname:8080/abc?func=ll point to the URL http:/hostname:8080/xyz?func=ll automatically. Set up is Apache behind which Tomcat is present. Application "xyz" is deployed on ...
1
vote
0answers
11 views

How do I remove a segment without affecting another

Looking for help creating an IIS rewrite rule. We have a distributable product that is installed in an unknown base url We want to block /app and do so using: <remove segment="app"/> ...
1
vote
0answers
43 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
0answers
12 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. ...
1
vote
0answers
68 views

Request exceeded the limit of 100 internal redirects due to probable configuration error

This error only seems to happen to a few pages. Others will load just fine, some slower, but others will error out: # BEGIN WPSuperCache <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / ...
1
vote
0answers
68 views

Setting up nginx, rewrite and fastcgi

This problem has been driving me nuts for the last couple of days... Working on an application that needs authentication and exists of different parts (CMS, API, frontend) we ran in to some problems ...
1
vote
0answers
44 views

How to convert RewriteCond rules so they work in Lighttpd?

How can I convert this Apache rewrite rules so they work on Lighttpd? This is in fact a .htaccess file, and I need to put those in a lighttpd.conf file. Options +FollowSymLinks RewriteEngine on ...
1
vote
0answers
34 views

URL Rewrite with Ngnix

I have a scenario today where I have an apache with mod_jk balancing requests to JBoss cluster. In this configuration I have some rewrite rules to remove the context root of the url. EX: URL request: ...
1
vote
0answers
128 views

Getting error 500.52 when creating reverse proxy with url rewrite

I have used the following technique for achieving Url rewriting. http://weblogs.asp.net/owscott/archive/2013/10/24/creating-a-reverse-proxy-with-url-rewrite-for-iis.aspx However i am getting the ...
1
vote
0answers
98 views

How to rewrite using htaccess if the file exists in another folder?

We are trying to rewrite to another folder if the file does not exist in the document root, but does exist in the other folder. The other folder is in a completely different location, which is ...
1
vote
0answers
178 views

nginx codeigniter rewrite: Controller name conflicts with directory

I'm trying out nginx and porting my existing apache configuration to nginx. I have managed to reroute the codeigniter url's successfully, but I'm having a problem with one particular controller whose ...
1
vote
0answers
326 views

URL rewrite doesn’t work for magento

Web Server Rewrites in admin is set to yes. Secure and unsecure URLs do not have index.php in them. mod-rewrite is enabled and works I tried all combination with RewriteBase / in htaccess Flushed ...
1
vote
0answers
389 views

Can a URL Rewrite condition compare two server variables?

I am trying to compare two server variables as part of a URL rewrite condition. But first, some context... In IIS, if you request http://www.example.com/foo and foo is a directory, IIS sends a 302 ...
1
vote
0answers
29 views

Redirect subfolder to subfolder and remove subfolder via nginx

I'm trying to redirect a subfolder to another subfolder with nginx. The hard part is removing the target subfolder from displaying, as it's a ruby app and not a true root folder. They are both on the ...
1
vote
0answers
215 views

How to create an nginx rewrite to timthumb.php

I have a website that has many custom image sizes. I'm following this example which uses apache but I need to recreate this on an Nginx server. ...
1
vote
0answers
172 views

nginx/php + zurmo, rewrite or internal redirection cycle

I am trying to get Zurmo CRM running on my Debian Jessie system on localhost. I couldn't find an example nginx config and the application needs to rewrite URLS, which I have done wrong. I also use ...
1
vote
0answers
193 views

Possible bug in IIS url rewrite module or is it just me?

Okay, so I came up with the brilliant idea to run a W2012 IIS8 with rewrite rules to do some reverse proxying for me, not because it's the best choice, but because I didn't want yet another box ...
1
vote
0answers
25 views

How do I write this .htaccess rule?

I'm having trouble constructing a RewriteRule in .htaccess to redirect http://edgerank.net/%22%20%5Cl%20%22What-is-EdgeRank to the root of the domain I think the issue is that I'm not escaping ...
1
vote
0answers
130 views

Prevent Google Image Search hotlink with Nginx rewrite

Google Image Search have the ability to point to the original image without displaying the website that's hosting the image. So I want to redirect those requests to a custom page of my site. ...
1
vote
0answers
34 views

How do I make nginx rewrite requests to a different server (which is in the same config)?

I am trying to achieve the following: Some files on my server should be served from a subdomain (static.example.com) for performance purposes (avoiding cookies). However, some of the content is ...
1
vote
0answers
87 views

mediawiki and wordpress MU different root with Nginx

i want to use wordpress MU with mediawiki on the same domain , but i'm using a kind of mediawiki hosting service called wikifamily. so i have to different script root : /var/www/wikifamly for ...
1
vote
0answers
157 views

Lighttpd and OpenCart GET requests with mod_rewrite

Our OpenCart is running on Lighttpd and we use mod_rewrite for SEO. Whenever we have our rewrite rules on, GET requests such as http://www.site.com/dev/?gclid=XXX do not work. Here are my current ...
1
vote
0answers
37 views

Static site to dynamic - rewrite loop

I have wordpress installed in a subdirectory of the root. I have followed the instructions provided to put index.php in root and create appropriate htaccess file. Site is up and running. Can access as ...
1
vote
0answers
196 views

URL Rewrite error with Web Applications

I am running an ASP.NET 4.0 website using IIS7 on Windows Server 2008 R2. The site has a number of Web Applications under the main domain (~/site1, ~/site2, ~/site3, etc...). Each Web Application is ...
1
vote
0answers
219 views

URL Rewriting and Rack base paths

I'm trying to set up a Rails website on Bluehost and I'm having trouble with the path helpers. As I don't want to monkey-patch Rails, I'm trying to solve this through .htaccess. Here's the scenario: ...
1
vote
0answers
242 views

nginx proxy_pass to different backends based on location / passing rewrited url

What the quickest and cleanest solution if you want to proxy URL request to two different backends via proxypass based on location. location /app1/ { alias /var/www/ruby/public; ...
1
vote
0answers
2k views

nginx $uri is url decoded

I am using nginx as reverse proxy and I have 2 rules like: location ~ ^/indirect { rewrite ^/indirect(.*) /foobar$1; } location ~ ^/foobar { set $url ...
1
vote
0answers
134 views

Lighttpd single subdomain Redirect/rewrite

This was originally asked on stackoverflow, but looking around here, I get a comfy feeling someone will know the answer. I am using lighttpd and would like to have the url path for one page show as ...
1
vote
0answers
159 views

Facing application redirection issue on nginx+tomcat

I am facing a strange issue on an application which is deployed on tomcat. Nginx is used in front of tomcat to access the application from browser. The issue is, I deployed the application on tomcat, ...
1
vote
0answers
167 views

Lighttpd with FastCGI configuration running ViewVC - rewrite problems

At the moment I am struggling with the configuration of lighttpd together with ViewVC. The configuration was ported from Apache 2.2.x, which is still running on the machine, serving the WebDAV/SVN ...
1
vote
0answers
247 views

Nginx condition proxy based on the $request_body

I want my server proxy Google if my $request_body of a POSTed request contains the string google, e.g. echo "google" | lwp-request -m POST "http://127.0.0.1" So I have the config like, e.g. server ...
1
vote
0answers
384 views

Outbound URL rewrite IIS 7 ARR crashing application

I'm having trouble with setting up a reverse proxy outbound URL redirect in IIS 7 with ARR. The domain has 2 inbound URL rewrites and 1 outbound URL rewrite. The inbound ones work fine and I haven't ...
1
vote
0answers
591 views

only removing index.php rule works on my NginX and CodeIgniter as rewrite. Why?

Although I've spent 2 days reading on forums, I still can't get some Codeigniter rewrites working in Nginx. Here is the server configuration: server { listen *:80; server_name artademy.com ...
1
vote
0answers
170 views

vhost.conf with plesk makes infinite loop

So I'm trying to make rewrite rules for my just migrated site and now we're using PLESK (unfortunately in my opinion). So, in order to make those rewrites I'm using the vhost.conf file in ...
1
vote
0answers
373 views

Mumble Django via Nginx - config file infinitely loops in rewrite

I am having a bit of problem of configuring Nginx in place of Apache, so that it served Mumble Django to clients. I have vhosts configs for both Apache and Lighttpd - let me put them here side by ...
1
vote
0answers
196 views

301 redirects along with URL rewriting to reduce URLs with query params

Okay, so I have URL rewriting set up on my server (IIS 7) so that, for example, http://example.org/p/1234/ is really http://example.org/product/?product_id=1234 (With /product/ containing an ...
1
vote
0answers
113 views

How to rewrite a legacy url for tomcat using urlrewrite 4.0

I have urlrewrite installed. We have a legacy base of computers that need to use a particular url (the important bits are in bold): ...
1
vote
0answers
41 views

apache url rewrite not working as expected

looks as if it's working now, i'm not doing anything... stange... I want to write http://www.1024jobs.net/jobs/view/17.jhtml to http://www.1024jobs.com/jobs/view/17.jhtml so i have tried either of ...
1
vote
0answers
88 views

How to set up an asp.net web site in a subfolder of another web site while still being able to use user controls?

I have this scenario: Website1 (site1.com) Website2 (site2.com) In IIS 6.0 site1.com is set up as a web site. There is a subfolder in site1.com called site2 that I want to use to serve up site2 ...
1
vote
0answers
283 views

ARR Reverse Proxy and multiple sites as subdirectories with IIS 7.5

I have multiple websites (combination of ASP.NET Webforms and MVC3) that we are trying to consolidate under a single domain with each site under a directory on this main domain. So I want to take the ...
1
vote
0answers
218 views

How to deal with certain characters in IIS URL Rewrite

I had a question on how to rewrite a url and had a great answer on the site, and it worked, but there is some characters that I can't find how to encode and iis doesn't like at all The original ...
1
vote
0answers
162 views

Rewrite cookies for ISA: add Secure

We've developed a web application. One of our customers decided to run it over HTTP internally and use an ISA server to function as a reverse proxy. The access to the ISA server from the outside world ...
1
vote
0answers
180 views

mod_rewrite: internal rewrite to (fake) clean URL not possible.

This is more a why question. I'm using a CMS that handles clean URLs via mod_rewrite out of the box. Website has a section /accessories that now has to be renamed to /store. Being on lazy mode, I ...
1
vote
0answers
302 views

django url matching with Lighttpd fastcgi

I have a problem with url. I can access the djando app home page ( localhost/djangotest/ ) but can't access the admin section ( localhost/djangotest/admin/ ). I can access it using the django server ...
1
vote
0answers
785 views

lighttpd reverse proxy rewrite

I am trying to configure lighttpd (v1.5) as a reverse proxy. Gollum is running on port 8080 and I've setup lighttpd.conf as per the following: $HTTP["url"] =~ "^/wiki.*" { proxy-core.protocol = ...
1
vote
0answers
408 views

nginx equivalent to Apache MultiViews?

If you put this in your .htaccess file Options MultiViews and you have these files stuff/ howto.html index.php items.php then all of these web addresses work /stuff/ # ...
1
vote
0answers
273 views

Configure URL Rewrite in nginx

Im trying to set up URL Rewrites for my MVC Framework but as this is the first time i have used Nginx I am having a little trouble. I have 2 access points for my application: /index.php ...
1
vote
0answers
268 views

RewriteRule not working in .htaccess but without error

I have a rewrite rule that it's not working but it doesn't throw any error so I can't figure it out. The .htaccess file is as follows: RewriteEngine On RewriteBase /site/ RewriteRule ...