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

Nginx: Redirect subdomain to path

This is very similar to the question at http://stackoverflow.com/questions/14491944/nginx-convert-subdomain-to-path-component-without-redirect, however I need it to be a permanent redirect (not ...
0
votes
1answer
23 views

How to rewrite this url in NGINX

I have multiple urls in this manner. http://domain.com/something/static/variable/ But now I want to redirect the url above to http://domain.com/anything/static/variable/ I tried location ...
0
votes
2answers
60 views

(Re-written based on feedback) Redirect traffic based on url to different ip address maintaining port and url information (nginx) [duplicate]

I am re-writing this as my previous version caused some confusion. We have a QA version, a UAT version, and a DEV version of webapp. Users need to access these via ...
0
votes
2answers
36 views

Apache mod_rewrite : RewriteRule to pass requests tomcat application [duplicate]

I am having difficulty defining a correct RewriteRule to forward requests to an application running in tomcat. I have apache with mod_rewrite enabled as well as tomcat setup with an application ...
0
votes
0answers
9 views

IIS Reverse proxy and URL Rewrite don't work

I did following steps: Installed all neede features to IIS (URLRewrite 2.0, ARR, ...) Created default MVC Web Application in VisualStudio Added this web app as new site to iis (I can access it by ...
1
vote
1answer
11 views

URL rewriting a specific directory

I want to rewrite the URL when receiving a request that is not a file and either for directory subdir or not a directory at all. E.g. (!file) && ( (subdir ) | ( !directory ) ) Here's my ...
0
votes
1answer
29 views

nginx: url rewriting not working

I'm using Jelastic with nginx 1.6.1 and would like to use friendly urls without the .php extension. So if someone visits for example https://domain.com/faq.php nginx should rewrite it to ...
1
vote
1answer
22 views

Nginx rewrite module not working

I've read a lot of topics about it, but couldn't solve my problem. After moving from APache to Nginx I can't set rewrites to handle my forums friendly urls. My forums is in /forum/ location of the ...
0
votes
2answers
45 views

Nginx rewrite: replace - with /

I set up ghost blogging platform. It doesn't allow to insert «/» signs in article links, but I want them to appear in my links, so I want them to be fixed with nginx rewrites. The link in a browser ...
0
votes
1answer
12 views

Nginx Rewite - Matching End Urls not working

Trying to redirect urls like these: http://example.com/vehicles/cars/author/xyz http://example.com/plane/author/xyz to these: http://example.com/profile/xyz I tried this Nginx Rewrite, but its ...
0
votes
1answer
17 views

Nginx: redirecting a directory to a virtual server

I have two Nginx virtual servers: server { listen 80 default_server; server_name antergos1; root /data/ } server { server_name nagios; root ...
0
votes
0answers
23 views

How to rewrite request for subdirectories using apaches' mod_rewrite?

My document_root is /home/john/public_html. I need the URL example.com/subdir/index.php to be handled by the file /home/john/public_html/index.php. This is what I put in ...
0
votes
1answer
27 views

Block a unique hash in URL through NGINX

I need to block a hash which is inside a URL through nginx. The URL which requires to be blocked is ht tp:/ /mp3s tri ng.c ...
0
votes
0answers
34 views

Nginx redirecting site index requests

Existing functionality: try_files along with rewrite are being used to allow requests for foo.html and foo/ to redirect to foo. Problem: If I specify try_files $uri.html $uri @noextension =404;, then ...
1
vote
0answers
21 views

Convertion of htaccess rewrite rule to nginx [closed]

Through searching the internet with "converting htaccess to nginx rule" I came up with anilcetin and winginx .htaccess to nginx converter which I doubt it doesn't correctly output what I need. Which ...
0
votes
1answer
43 views

Nginx rewriting files that do not exist

Nginx is returning the site root index instead of a 404 response for non-existent files, i.e. attempting to rewrite files that do not exist which is undesired. While I see the topic was answered here, ...
0
votes
1answer
20 views

Nginx: How do I point the root to a Ghost blog located in a subdirectory?

I have installed Ghost inside a blog/ directory in my site's root. The site works as domain.com/blog/ and serves static files from public_html/ directory (including index.html). I would like to have ...
0
votes
0answers
19 views

Mod-rewrite with GET [duplicate]

I'm trying to get my htacces to rewrite URLS with GET parameters but hopelesly failing. I'd like for this: domain.com/landingpage?variableone=true&variable2=false to be converted to this: ...
0
votes
0answers
32 views

Nginx Rewriting, Renaming and Redirecting to another Folder

I am trying the following steps to my old urls before redirecting them: 1) Rewrite all urls inside a folder by replacing underscores to hyphens 2) Remove the old folder name 3) Try the new urls in ...
2
votes
1answer
56 views

Nginx treating old PHP urls as Files

Having a very hard to trying to figure this out. I have changed my website from another platform to Joomla and now Nginx is unable to handle old urls. My Old Urls were like this: ...
0
votes
0answers
29 views

IIS URL Rewrite not adding trailing slash

I have a Windows Server 2012 R2 acting as a reverse proxy for an apache server on another local server. When I access the site with example.com/myapp/ It works fine but if I go to example.com/myapp ...
0
votes
1answer
40 views

How to create Multiple Parked Domains in Nginx Server Block

I have bought multiple domain names for my website. Right now, I redirect these parked domains (the domains pointing to my nginx ipaddress) like this: server { server_name example.com ...
0
votes
1answer
24 views

Nginx Re-write: Different URL based on incoming URL format [duplicate]

I have a server that will have 2 different types/formats of requests coming in. Both request URL's will start with: http://myredirect.mycompany.com/browse/. After '/browse/' it will either be a ...
0
votes
1answer
18 views

mod_rewrite combine these two rules into one

I have two rules that currently function as they should, but I feel like they can be consolidated into one for the benefit of a smaller config to maintain and less rules to process for each HTTP ...
0
votes
1answer
60 views

Rewriting ASCII-percent-encoded locations to their UTF-8 encoded equivalent

For example, “å” can be encoded as /%E5 and /%C3%A5 (utf-8). All my filenames are UTF-8, so the ASCII variants return a 404. I want both variants to work. I have tried rewriting the incorrect URLs to ...
0
votes
1answer
30 views

web.config URL access and rewrite

I'm trying to clean up some URLs to a bunch of PDF files. Right now, you access a PDF by visiting the following: http://www.mywebsite.com/sites/default/files/reports/2010_Audit_Summary_Report.pdf ...
1
vote
1answer
48 views

Nginx rewrite part of URL

i'm trying to make a redirects from URL's with option ID to URL's with option URL_key i've assigned. I have two column table with ID i'd like to substitute and URL_key as substitute. 11337 bar ...
1
vote
0answers
49 views

Rewrite a url to a a new URL and then send the new URL to a PHP script

I have URLs that contain a cache busting string. I want to rewrite these URLs without the cache busting string, and then send the rewritten URLs that match a certain criteria (e.g. audio/video files) ...
1
vote
1answer
66 views

nginx location and root settings dont work

I am trying to rewrite every file after cdn.minora.me/forum/ to another directory: server { listen 443 ssl; listen [::]:443 ssl; ssl on; ssl_certificate ...
0
votes
0answers
27 views

nginx rewrite keeping subdomain

I have a nginx server and several domains connected to it. I would like to replace all http request with a https request to one specific domain (for which I have a certificate). Example: Say I have a ...
0
votes
0answers
39 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
0answers
83 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 ...
0
votes
2answers
99 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
vote
0answers
51 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
0answers
22 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 ...
0
votes
1answer
54 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 ...
1
vote
1answer
45 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
1answer
47 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 ...
2
votes
2answers
45 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 ...
-1
votes
1answer
33 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 ...
1
vote
1answer
105 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 ...
0
votes
0answers
39 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
63 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 ...
0
votes
1answer
42 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 ...
0
votes
1answer
42 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: ...
0
votes
0answers
54 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
0answers
58 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"> ...
0
votes
1answer
53 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 ...
1
vote
0answers
17 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
71 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, ...