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
6 views

Route request to Tomcat only if file doesn't exist on disk

I have Apache in front of my Tomcat installation as a reverse proxy. Most URLs are routed to Tomcat by a JkMount directive in Apache. For one URL pattern I'd like Apache to route requests to the ...
0
votes
0answers
13 views

Nginx and complex URI rewrites

I'm having problem with getting logic behind Nginx rewrites. Are they supposed to be in server or location directive? I need to rewrite one long and scary URL to another. Is there anyone who can ...
0
votes
1answer
20 views

Tomcat 7 URL rewrite from other domain

On a tomcat 7 server, we've configured a https connector, the TLS certificate is valid for an URL like www.example.com . Now we want to change the A record of one of our subdomains (like foo.bar.com) ...
0
votes
0answers
27 views

outbound rule IIS Application Request Routing and URL Rewrite to properly replicate Apache ProxyPass ProxyPassReverse?

EDIT: See end of post on that a ReverseProxy Outbound rule is needed. With Apache ProxyPass and ProxyPassReverse one can add the following to the Apache config of serverA: ProxyPass /foo ...
1
vote
1answer
11 views

How can I deny access to a folder in OpenLiteSpeed similarly to the way Apache does it?

I'm trying to deny access to a folder for a website that is hosted with OpenLiteSpeed v1.4.2, but I'm have trouble. I take it that .htaccess isn't supported in OpenLiteSpeed so I am unable to just put ...
0
votes
1answer
24 views

Forcing https redirect is rewriting all URLs to root directory and not appending latter half of URL

I'm forcing http to https with the following in .htaccess: ## Forcing https RewriteCond %{HTTPS} !^on$ RewriteRule (.*) https://website.com/$1 [R,L] Following that, I also have a redirect that ...
0
votes
1answer
30 views

Nginx Passenger Node Application URI Rewrite

I have a node application that accepts all routes starting at /. The Nginx / Passenger configuration for it is: server { listen 8889; server_name localhost; location / { root ...
1
vote
0answers
21 views

Delayed requests when using ARR with IIS 8.0 on Windows 2012

I've got a setup on Windows Server 2012 R2, using IIS8.0 which passes certain requests through to a custom backend using Application Request Rerouting. The backend is only listening on IPv4 on port ...
1
vote
0answers
28 views

apache rewrite through proxy remote

We are trying to write a reverse proxy rule to an external site. ProxyRequests On ProxyRemote https://abc.company.com http://proxy.company.com:80 ProxyPass /_vti_bin/AccountList.asmx/ ...
0
votes
2answers
50 views

Nginx Wordpress rewrite for multiple sub-folders

I am currently setting up our new server for our company, and we are developing alot of different apps, and right now we want to have all our wordpress apps under wp.domain.com/app1, ...
0
votes
1answer
34 views

Nginx rewrite for a large group of URL's to a 444

I am looking for a rewrite that will pick up any number of defined URL's and do a return 444 on any of them. Rather than writing out each one individually, I was hoping for something where I could do ...
1
vote
1answer
76 views

Manage nginx rewrites in project folder

I am trying to figure out on how to migrate from Apache to nginx, keeping rewrite rules flexible to change for developers. This is our current setup: We have a .htaccess file in the root folder of ...
0
votes
0answers
24 views

Apache + WebDAV: Redirect user to an individual subdirectory (with the use of WebDAV clients)

I'm trying to set up WebDAV and would like to provide a private "Home Directory" for each user. When a user connects to the WebDAV server, he should be automatically redirected to his home directory ...
0
votes
1answer
61 views

Nginx - proxy_pass - specific location not working

I am trying to masking a remote URL with Nginx using proxy_pass I'd like to load staging.saas.localhost/_ when the browser url is saas.localhost/uk_staging. For some reason the location in ...
0
votes
2answers
40 views

Nginx rewrite rules with php args

I have 2 websites, http://localhost/bb -- phpbb http://localhost/dp -- Drupal I wish to redirect $server_name/bb/ucp.php?mode=logout&sid=xxxxx to $server_name/dp/user/logout, the sid should be ...
0
votes
1answer
33 views

Nginx Not Passing Rewrites To PHP-FPM

I have the following rewrite rules for nginx. The rules seem to not function correctly, for example the rule for games is supposed to rewrite http://thegamesdb.net/game/2/ to ...
0
votes
2answers
49 views

Nginx : rewrite request for 'p.test-prd.com.local' to 'www.test.com'

For various reasons, we follow an internal DNS scheme where the internal test site for 'www.test.com' would be 'p.test-tst.com.local'. I won't go into the details why we ended up with the scheme we're ...
0
votes
1answer
42 views

How do I place an SPA in a S3 state website subdirectory using rewrite rules?

I have successfully deployed AngularJS apps to S3 in the past with html5mode enabled in order to allow for hash-less URLs. For my current project, however, I need to place the Angular portion of the ...
0
votes
2answers
40 views

How to stop Apache from finding a filename from a URL path (without the extension)

I have a file update.php in my doc root. But I don't want /update in my URL to direct to update.php (because I want /update to be associated with a page in my CMS, Drupal 7) I know that Apache is ...
-2
votes
0answers
36 views

How to change the base URL of images in wordpress to a CDN URL

I have successfully migrated a production site with wordpress and now .css, .js and images are hosted on a CDN. New images will be uploaded and properly point to the CDN but old images don't. I am ...
0
votes
1answer
23 views

Apache Redirect for Internal Traffic Only

We have a page, gateway.school.edu, where users have to fill out a recaptcha before being directed forward to our password reset. I would like any internal traffic, any user agent on our network with ...
0
votes
2answers
29 views

blogger to pelican nginx rewrite rule

I just converted my blog from blogger to pelican. On blogger, posts used to be something like: http://blog.example.com/2014/09/title-slug.html, now my blog on pelican is ...
0
votes
1answer
9 views

Removing the prepended directories from $1 variable in a rewrite rule

I have this rewrite rule RedirectRule ^(/arf/sites/.*)$ /docs/saf/files$1 [R=301,I,L] When it redirects, $1 contains /arf/sites/filename.html so after the redirect, the visitor ends up at ...
0
votes
2answers
93 views

nginx use rewrite as dynamic 404 image

I want to get a dynamic 404 response depending on the requested url: foo.jpg doesn't exist http://example.com/img/style/thumbnail/foo.jpg should show ...
1
vote
2answers
118 views

nginx + varnish, optimize caching urls for ssl and not

I have a working varnish cache for my websites, with the undesired side effect that requests for a domain with http are cached with a certain url, and requests for https with another url. That way I ...
1
vote
1answer
71 views

Rewriting (not redirecting) a URL in Nginx

I have a situation that I think is a bit different from most. It's certainly different from any that I've encountered before: I'm building a site for a client who wants/needs to retain full control ...
0
votes
1answer
42 views

Nignx Redirect rule to a different url based on a query

We have a wordpress installation and need to redirect lost password link to another different url for this we trying to setup a redirect rule but this is not working. Can anyone please help us. ...
0
votes
1answer
23 views

How do I direct traffic without redirecting in IIS7.5?

We have a production machine running Window Server 2003. Previously, development took place in a WAMP environment but a few users are moving to IIS. The issue is, we have a directory on the server ...
0
votes
1answer
28 views

why isn't this nginx rewrite working?

I'm trying to redirect wp-content/uploads/(.*)$ to images/$1 but this location doesn't appear to be redirecting - why? Would it be more efficient to use try_files? location ^/wp-content/uploads/.*$ ...
0
votes
0answers
63 views

302 redirect on all pages of website, creating crawler issues

My website is having difficulties working with Facebook/LinkedIn/social crawlers. I think this may be due to the redirect headers it seems to be returning. Browsers can access the site completely ...
1
vote
1answer
127 views

Nginx rewite rules 403 error

I am having trouble with converting .htaccess files to nginx. I have 3 .htaccess files. The first .htaccess file is located in the document root and is as follows: Options +FollowSymLinks ...
0
votes
1answer
91 views

Serving multiple directory in one path/location with nginx

I have been trying serve multiple directories in one location so that all files can be access on /sys/assets/--FILE-- regardless of where is the file physically locate in the following folder ...
0
votes
0answers
128 views

IIS Rewrite Rule in web.config to redirect HTTPS requests to HTTP

I need to redirect all https requests to http, for example, if someone visits https://www.example.com/another-page/ to http://www.example.com/another-page/ I have the following rewrite rule in my ...
0
votes
0answers
24 views

Apache VHost states: “authnz_sspi:error OS 1326 user unknown”

We recently upgraded from Apache 2.2 to 2.4. Since we used to have SSPI authentication on the old version, I was looking for an alternative, since the old module is not supported in the new version ...
0
votes
1answer
30 views

Nginx to split web traffic to a blog hosted on my domain

At the moment, I am using an Nginx frontend to cache static content for my DotNetNuke based website hosted at the hypotetical address www.mydomain.com, along with some other tasks. In this era of ...
-1
votes
2answers
37 views

Apache serve static content according to hostname

I have tomcat running behind apache and some web application running on it. My application handles whitelabeling so if some user will goes to subnet1.myhost.com he will se some website and ...
0
votes
1answer
61 views

Front-ending several web applications on port 80 using a proxy

I have several web applications hosted on an AWS server on different ports, e.g. app1: http://x.x.x.x:8080 app2: http://x.x.x.x:9000 ... I would like to a proxy in front of these apps (apache, ...
0
votes
0answers
39 views

How to make subdomain point to a different path without a redirect?

How can I make http://param1.domain.com act as if it's loading http://domain.com/param1 in Nginx? I do not want to redirect to http://domain.com/param1. So far I have created a new server block ...
1
vote
1answer
70 views

Apache proxy for multiple servers: comparing two solutions

I need to setup Apache proxies for multiple servers, one proxy for one server. I can do this in two ways: Setup one virtual host and multiple proxies. Each server is served as a sub-directory of the ...
0
votes
1answer
14 views

Lighttpd: How to migrate a rewrite rule?

i'm using this htaccess rule on a apache: RewriteEngine on RewriteCond %{HTTP_REFERER} example\.com [NC] RewriteRule .* - [F] .. and i would convert it to an lighttpd rewrite rule. How can i do ...
0
votes
1answer
28 views

nginx valid_referer for all files inside a directory

I have this config location /mirror/files { valid_referers none server_names example.com *.example.com; if ($invalid_referer) { rewrite ^/(.*)$ http://example.com/; } ...
0
votes
1answer
40 views

nginx Subdirectory Rewrites for MVC

I am tasked with administering a web application that has a base directory with a bunch of legacy code in it, and a subdirectory of my own making with an MVC based API which we are using to slowly ...
0
votes
2answers
175 views

IIS ARR/Reverse Proxy 502 Errors for Larger Files

I have an API written in Python which I am accessing with IIS 7.5 via the ISAPI extension PyISAPIe. I thought it would be sensible to separate this API from our main site, so it is in a different site ...
0
votes
1answer
150 views

Nginx redirect for specific file extension

I'm having trouble setting up the redirects for a Magento extension. The URL requested is: ...
0
votes
1answer
121 views

How to make Nginx include index.php in file paths for sub-directories as well (Magento Multistore)

Running multistore setup with Magento on an Nginx server. I'm watching the access logs and can plainly see what is happening. Like many PHP web apps, it uses index.php in its URLs and I have it set to ...
0
votes
2answers
38 views

Rewriting a download URL, but “save -as” dialog shows original URL

I have the following mod_rewrite directive in my lighttpd config file: url.rewrite-once = ( "foo.*$" => "static/foo.pdf", ) I'd like to hand out URLs like this: ...
0
votes
2answers
43 views

nginx rewrite if requst_uri contains some numbers

I'm having a little problem with some rewrite rules for a website. My permalinks are now something like domain.com/ID/permalink-ID.html The old structure of permalinks was ...
1
vote
1answer
54 views

nginx rewrite tld to match language of site

I have an issue with my nginx config for my joomla site. I want to rewrite/redirect based on the tld used. Example: domain.fr -> domain.com/fr domain.se -> domain.com/se How can I achieve this?
0
votes
1answer
91 views

Convert apache rewrite rules to nginx

I want to migrate an Apache setup to Nginx, but I can't get the rewrite rules working in Nginx. I had a look on the official nginx documentation, but still some trouble converting it. ...
0
votes
2answers
40 views

RewriteRule Works With “Match Everything” Pattern But Not Directory Pattern

I'm trying to redirect newsletter URLs from my local server to an Amazon S3 bucket. So I want to redirect from: https://mysite.com/assets/img/newsletter/Jan12_Newsletter.html to: ...