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

apache mod_proxy_html to rewrite wsdl

I'm trying to configure mod_proxy_html on apache httpd 2.4.9 to rewrite an element of an xml document returned from a webservice that is reverse proxied using mod_proxy_balancer <description ...
0
votes
1answer
869 views

How to rewrite Rejected-By-Urlscan in IIS7

I'm migrating an ASP.NET app from IIS6 to IIS7 and in doing this I'm also porting my rewrite settings from Intelligencia.UrlRewriter to using IIS rewriting. In have some problems with ...
1
vote
2answers
204 views

Server remembering old rewrite rules, even when I remove htaccess

I have set up a development server with Ubuntu and LAMP, but for some reason the .htaccess is acting strange... There is a site on there with a set of rules, when I comment them out they still work, ...
0
votes
2answers
49 views

Nginx: How to rewrite arguments passed to index.php?

I am struggling with some Nginx rewrits for url arguments passed to index.php: Old: ?topic=10126.msg36887 New: ?posts/36887/ My two questions: 1) How do I rewrite to the new argument structure ...
-1
votes
0answers
11 views

RewriteRule in Apache [duplicate]

I want to rewrite some urls. Example domain.com/planning into domain.com/index.php?page=planning RewriteRule ^planning+$ index.php?page=planning [L] But also domain.com/planning/add into ...
1
vote
2answers
1k 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
votes
0answers
14 views

Apache rewrite rule for image [duplicate]

Can someone tell me how to write a rewrite rule for apache which makes http://web.site.com/folder/--411.jpg go to http://web.site.com/folder/logo.jpg So if the file at the end is JPG/PNG/GIF and ...
0
votes
0answers
12 views

IIS 8 Win 2012 R2 - Rewrite redirect not working, page not found, address not changing

I have an MVC4 app and trying to rediret pages so that both http://example.com/about and https://example.com/about direct to https://example.com/about (where about could be any other page also). I ...
1
vote
0answers
9 views

Apache rewrite rule for multiple named virtual hosts with a 'catch all' rule

I have a redirect apache server that I setup for about 30 domains. I want to have all requests get redirected to the main server except for 1 domain. Basically any domain coming to this server gets ...
1
vote
0answers
20 views

Nginx restful url rewrite

I need to rewrite URL like this: example.com/demo/test/123/edit To: example.com/demo/test.php?a=123&b=edit It works with this rewrite rule: location /demo { rewrite ...
1
vote
1answer
1k views

Nginx rewrite to eliminate “www” not working

I've looked at many SE threads and done various google searches and can't figure out why i can't redirect www.mysite.com to mysite.com on my nginx server. The 1st server block does the ...
0
votes
1answer
1k views

IIS 7 Url Rewrite Not Working

Inbound IIS7 Url Rewrite Rule not working Below is the URL Rewrite rule I've defined. <rewrite> <rules> <rule name="Redirect domain.co.uk to www.domain.co.uk" ...
0
votes
3answers
2k views

Apache > 2.2.22 rewrite rule not working?

since yesterday I'm trying to figure out how to fix the following: running phpipam (http://www.phpipam.net/) with WAMP (Windows environment). The problem I am facing is related with RewriteRule ...
0
votes
1answer
41 views

apache rewrite rules, non-www, https

I have two applications on the same server and use apache rewrite rules to redirect: www requests to non www http reuests to https Everything works ok, except one case: request www.test2.test.eu ...
0
votes
1answer
38 views

How to restrict proxied apps based on application auth logic

I have a vhost with mod proxy that redirects fine, but I’d like to add to it. Here’s my vhost: <VirtualHost *:80> ServerName www.domaine.local ProxyRequests Off ProxyPreserveHost ...
1
vote
1answer
22 views

Nginx Location Rewrite Rule matching GeoIP Header value

I'm looking to write a simple rewrite rule where I basically am trying to say the following If the requested URI is text/index.html (or test/) and the GeoIP Organization equals "My GeoIP Value" then ...
0
votes
2answers
4k 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, ...
2
votes
3answers
2k 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 ...
2
votes
2answers
38 views

Apache to Nginx Conversion (Newbie)

I've got a Nginx Web Server Setup with PHP and I want to move on Nginx and I want to convert these .htaccess rules to nginx.conf file: RewriteRule ^blog(|/)$ /data/core/site/blog.php RewriteRule ...
0
votes
2answers
831 views

Server, Database or Code Issue? Magento backend rewrites itself with a index.php which doesnt work

I will be honest and admit my cross posting in magento.stackexchange.com but the reason is that I believe it is a server fault, and now I am looking for proof to present to my dreaded hosting ...
0
votes
1answer
1k 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 ...
1
vote
0answers
112 views

IIS 7.5 URL Rewrite domain redirect

I am trying to figure out why the following code does not work. This is a copy of my web.config file: <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> ...
1
vote
1answer
46 views

Getting “Too many redirects” error with nginx rewrite rule

I am trying to rewrite the domain url that targets my site such that all domain names are rewritten to www.example.com and have the following config: mysite block server { listen ...
-1
votes
0answers
14 views

Url rewriting in Amazon S3

I have a webapp hosted in Amazon S3, the webapp is build with jQuery Mobile and I use changePage lo navigate between pages, I'm not using the hash operator(#) when I change the page. I'm having ...
0
votes
1answer
871 views

.htaccess Rewriting Tomcat Server

I am writing a website using Railo. My code is to be deployed on a Railo Server running on Tomcat, overlayed on a regular Apache+PHP server. I need to send all requests to ...
0
votes
0answers
28 views

Rename file in apache

I maintain large files versioning on a server. Files are stored rewrited (hashed) on several folders, such as : For file test.avi : FOLDER1/aeriuyzekjshdfkjh FOLDER1/aeriuyzekjshdfkjh#1 For file ...
0
votes
0answers
37 views

nginx rewrite throw 404 with last and break

I have a virtual host like below for my Yii website server { root /var/www/code; index index.php index.html; server_name example.com; location / { rewrite ...
3
votes
1answer
162 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 ...
0
votes
0answers
34 views

Nginx rewrite URL based on basic auth username

I have a static file serving set up in Nginx wherein different customers need to visit a different URL to get the content that is specific to them; in addition, they have to enter their username and ...
3
votes
2answers
1k views

URL Rewriting Problem [duplicate]

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

Configuring a server-wide RewriteRule in conf-available

Lately I have been getting some referrer spam in my website's logs. In order to stop this (as it's quite annoying and also polluting my statistics), I want to block requests that are coming from ...
1
vote
3answers
885 views

nginx: How to redirect root to subdirectory while maintaining URL in the address bar

I have an nginx setup with folder structure like this: - www |- splash |- blog www is the root folder. I would like to redirect users who access http://mysite.com to the splash folder. But I don't ...
0
votes
1answer
828 views

URL Rewrite and mod_jk

I want to redefine the base URL of a Tomcat webservice, mounted with JkMount. I tried the following: JkMount /myapp/* ajp13_worker RewriteRule ^/service/v1/(.*)$ /myapp/$1 [PT,QSA] The original ...
0
votes
2answers
356 views

Rewrite test works fine, but not when actually sending mail

When testing the following rewrite rule (Located in /etc/exim4/conf.d/rewrite/31_exim4-config_rewriting) *@*.hidden $1@hidden.com fsrF The test results are as expected xeross@Mainframe:~$ sudo ...
0
votes
1answer
31 views

nginx location regex /yyyy/mm/dd/

I'm trying to pass requests from address example.com/donor/2014/12/07/Name on the other server. URIs are like /donor/2014/12/07/Mike and I need to convert them to a query type of: ...
1
vote
1answer
3k 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: ...
0
votes
1answer
46 views

Postfix reply to emails addressed to external email while keeping the correct from address

I have a mail server all set up and running on ubuntu 14.04 with Postfix / Dovecot for the domain "postfixserver.com". A second domain "googleapps.com" is running on google apps. user@googleapps.com ...
3
votes
0answers
22 views

IIS 7 Redirect from HTTP to HTTPS fail with ampersand in URL

IIS 7 on Windows Server 2008 R2 SP1 I have added the following rule to my web.config to redirect all incoming request to HTTPS <rule name="HTTP to HTTPS redirect" stopProcessing="true"> ...
1
vote
1answer
50 views

Should I use rewrite or return or proxy_pass in nginx?

The Apache documentation pretty clearly states that mod_rewrite should only be a last resort. For nginx, the Pitfalls section has examples where the request_uri is essentially unchanged. The ...
0
votes
1answer
819 views

Apache mod_rewrite to return a 404 except one directory

I'm trying to configure Apache to return a default 404 page when the / of DocumentRoot is called, except for some directories in that DocumentRoot Unfortunately, I'm getting a 404 even for the ...
0
votes
1answer
945 views

Nginx URL virtual host rewrite issues with Magento e-commerce. Help please

I've been running into some serious problems with my URL rewrites and I can't seem to fix it on my own strength and knowledge and troubleshooting on the web! Basically what happens is that when I ...
1
vote
0answers
9 views

NVA: rewrite before or after Varnish?

I'm planning an NVA server system (Nginx-Varnish-Apache), where request are routed through in that order. Apache would be serving WordPress CMS or similar. I'm wondering where to apply additional ...
0
votes
1answer
25 views

nginx rewrite specific .css url to specific .php url

I'm assuming this is an easy one for anyone with nginx knowledge. I'm calling a URL like this: /site-preview/css/custom-styles.css?org=myorg The file custom-styles.css doesn't actually exist. So, ...
0
votes
2answers
29 views

Apache Redirect: to prepend 'www' and Clean URLs

I am administrating an Apache/2.2.15 webserver with several virtual hosts. For one of these hosts I want to always prepend a missing www.. Besides that, I want to add several short-cut URLs. Here is ...
0
votes
1answer
34 views

How do I use rewrite in Nginx to convert an Apache redirect rule? [closed]

I need some help to convert .htaccess apache rewrite to Nginx. My WordPress website has this URL structure: https://domain.com/our-office/laos/ And I need to change to: https://domain.com/laos/ ...
1
vote
0answers
22 views

Apache2 mod_rewrite, handling the optional “/” at the end of a URL

I am attempting to host a single custom page to set as my homepage on my server. The real path to the page is example.com/start.html. However, I do not want this ugly URL in my homepage so I am ...
0
votes
1answer
44 views

Haproxy “use_backend” match order

I have a problem with Haproxy, it's a snippet of my haproxy.cfg below, acl url_a path_beg /a acl dom_eye hdr_dom(host) -i www.mydomin.com use_backend eye1 if dom_eye use_backend ...
0
votes
2answers
2k views

How to redirect or rewrite IIS site with port in URL to URL without port?

I'm not 100% sure if this is the right part of StackOverflow to post this but to me it made the most sense. Sorry if its not! Currently I have a site in IIS configured on HTTPS with port 7500. I can ...
1
vote
1answer
947 views

IIS URL Rewrite rule to redirect subdirectory traffic to https

I have a site where I've written an URL rewrite rule to direct all site.com traffic to www.site.com. Works fine. Now I want to add SSL to an application on a subdirectory. I've added the SSL to the ...
2
votes
1answer
3k 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 ...