-1
votes
0answers
22 views

Apache url rewrite to Nginx [duplicate]

i work on a little php platform and my server is nginx. The first version of this php site was developed for Apache server. I need to upgrade the site and to migrate it to nginx server. The problem ...
0
votes
1answer
92 views

IIS URL Rewrite - Redirect any HTTPS traffic to sub-domain

Our hosting environment dictates all secure traffic music travel over a particular sub-domain. We are using the .NET CMS Umbraco, which as far as I'm aware doesn't have any functionality to 'assign' ...
-1
votes
1answer
32 views

IIS (or .htaccess) URL Rewrite not working correctly - need to capture number argument as query string

I'm trying to have: http://sub.domain.org/123456 become http://sub.domain.org/index.php?q=123456 I have tried many ways, and one way sort of worked, but then all subdirectories (including images) ...
0
votes
3answers
44 views

How to remove hypen (-) using nginx rewrite rule?

I am using this rewrite rule to redirect example.com/a-b-c?id=learn-more ----> http://example.com/abc?id=learnmore rewrite ^/a-b-c?id=learn-More http://example.com/abc?id=learnMore permanent But ...
1
vote
2answers
314 views

nginx url rewriting. i just don't get it

Ok, an example url is http://www.mysite.com/?p=account&view=settings the p uri is a constant. all urls have it. the view is one of many optional uri. i've tried to understand url rewriting ...
0
votes
1answer
119 views

How to tell Nginx to not rewrite URL's in selected location

I am writing some PHP CMS code with a clean url implementation in Nginx. To improve security of my code I want to rewrite all of the requests in my root directory / using the following type: rewrite ...
0
votes
1answer
209 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 ...
0
votes
1answer
234 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
0answers
51 views

Nginx URL rewrite / mask

Currently, my $_GET parameters are ordered alphabetically (a, b, c, d, etc...) For example: https://domain.com/?a=Menu1&b=Menu2&c=Menu3 What I want is this URL: ...
0
votes
0answers
40 views

nginx rewrite subdomain to other subdomain

I have a atlassian server with the following config: server { listen 443; server_name servicedesk.example.nl; ssl on; ssl_certificate certs/jira.cer; ssl_certificate_key ...
1
vote
1answer
47 views

Issue when redirecting a folder using IIS url rewrite

Using Url Rewrite, I'm trying to redirect /foo_bar/* to /foo/*. I've tried this: <rule name="Redirect foo_bar to foo" stopProcessing="true"> <match url="(.*)" /> <conditions ...
0
votes
1answer
518 views

Ngnix Rewrite - If URL contains

I'm having a small issue - my error log is filling up with requests to a directory folder on my site (but with added data that shouldn't be there). http://example.com/the-directory/undefined ...
2
votes
2answers
2k views

Add trailing slash when it's missing in nginx

I'm running Magento on Nginx using this config: http://www.magentocommerce.com/wiki/1_-_installation_and_configuration/configuring_nginx_for_magento. Now I want to 301 all URLs without trailing slash ...
0
votes
1answer
296 views

nginx rewrite rules with regex applied to one subdirectory only

I've been frustrated for days trying to figure this out, so any advice/help would be greatly appreciated! I've recently added a section called /links to a site at somehost.com but can't seem to get ...
0
votes
0answers
58 views

htaccess Rewrite leading zero in url causing trouble

I have a database with a string column made up of four unique digits attached to each record. I know this isn't the best way to do this but I'm kind of stuck with it. I'm trying to rewrite urls from ...
1
vote
1answer
303 views

How to change $request_uri in nginx?

We get information from $_SERVER['REQUEST_URI'] not from $_GET or $_POST. I want to define $request_uri to change /example to /module/controller/action not redirect. I tried code blow to do this ...
0
votes
1answer
139 views

.htaccess URL rewrite to upper-case characters in domain

For example, I'd like to have foobar.com show FooBar.com This almost works, but ends up forcing a redirect loop: RewriteEngine On RewriteCond %{HTTP_HOST} ^(www.)?foobar.com\.com RewriteRule ^(.*)$ ...
1
vote
3answers
322 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 ...
-1
votes
1answer
20 views

URL redirection [duplicate]

I have set up a ubuntu server with apche 2 installed, I already have a windows server 2003 installed with Zywall firewall installed, I successfully started Apache2 in Ubuntu server and it is running, ...
-1
votes
1answer
142 views

Using URL Rewrite to change part of URL

I'm trying to use an URL rewrite on an IIS 8.0 to rewrite existing URL's on a developer machine. The reason for this is that I don't want to change existing (old) code. What I'm trying to achieve is ...
0
votes
2answers
48 views

Advice on mod_rewrite url in Apache

I'm trying to set up a mod_rewrite rule so that when the webpage www.mysite.com/blog is requested a page from the blogging service Tumblr is loaded. I have set up my Tumblr site so that ...
0
votes
4answers
2k views

Redirect url for Microsoft RD Web (Server 2012)

I have installed RD Web on the same web server as OWA and ECP (Exch 2013) console. All web applications are installed in the Default Web Site and Exchange Back End For OWA and ActiveSync my users ...
0
votes
1answer
51 views

How can I rewrite an internal/LAN URL using Apache rewrites? [duplicate]

Is it possible and how could I rewrite http://192.168.1.1:4950/hello to, e.g., http://home.hello I know how to use .htaccess to rewrite just part of URL's but can't figure out how to rewrite whole ...
1
vote
1answer
355 views

Centralized IIS to redirect to other IIS servers

Basically what i'm after is to have a centralized IIS Server on the Local LAN where port 80/443 would be forwarded to from the router. Then through this server it can forward/redirect the requests to ...
0
votes
1answer
418 views

Reverse proxy in IIS to local TomCat

IIS has several websites: domain1.com a.domain2.com b.domain2.com There is also a TomCat running on localhost:8087 The challenge is how to expose the TomCat externally as b.domain2.com ...
5
votes
2answers
2k views

Disabling URL decoding in nginx proxy

When I browse to this URL: http://localhost:8080/foo/%5B-%5D server (nc -l 8080) receives it as-is: GET /foo/%5B-%5D HTTP/1.1 However when I proxy this application via nginx (1.1.19): location ...
1
vote
0answers
274 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
1answer
1k views

Prevent URL Rewrite rules from being inherited by subdirectories in IIS7

I have a URL Rewrite setup for clean URLs in a CMS and my web.config looks like this: <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> ...
1
vote
0answers
405 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
3answers
5k views

why i cannot download jdk from oracle web site directly without AuthParam?

that is download with the following command, why it fails to download that file? wget http://download.oracle.com/otn-pub/java/jdk/6u35-b10/jdk-6u35-linux-i586.bin the following command works, but ...
1
vote
1answer
94 views

Issue with Tomcat application url

At domain my.test.org I have the following setup: A Tomcat6 running on port 8080 A redirection from port 80 to 8080 at the OS level (using NAT) An application deployed in Tomcat at ...
1
vote
1answer
338 views

Rewrite rule for language fragments in nginx

I want to rewrite some url's in nginx and I have an wordpress site with URLs like this: http://mydomain.com/en/my-content How can is remove the en/ with nginx? Thanks a lot. Peter
0
votes
1answer
695 views

Redirect 404 errors without rewriting the URL

Is it possible to have an erroneous URL remain in the address bar while redirecting the user to a URL within my domain? I want www.domain.com/forum to be the actual site being served in all 404 ...
0
votes
2answers
44 views

apache URL issues

I'm sure someone has asked the same question on serverfault but I just don't know what to look for. I have two subdomains from different hosts in my school. eg. One is: ...
0
votes
1answer
63 views

How do I Nginx rewrite with query?

how do I rewrite this url from: mysite.com/folder1/file.php?kw=KEYWORD to mysite.com/folder1/file/KEYWORD and ...
1
vote
2answers
430 views

How to get a custom Amazon s3 url?

Right now when I upload a file to my Amazon s3 buckert the url to the file looks like this: https://s3.amazonaws.com/<MY BUCKET NAME>/filename.extension I would like to use something like ...
0
votes
1answer
141 views

Apache Rewrite Rule

Does Apache rewrite rule automatically change the URL of all pages without editing links? I tried rewriting Apache rule from .htaccess, but nothing happened, so I'm wondering if I need to edit the ...
0
votes
1answer
79 views

Redirect a url to a new host

I have the following URL which displays a normal static website: www.example.com. This site is hoted on Amazon. I want to make all urls starting with www.example.com/redirect to redirect to another ...
0
votes
2answers
348 views

Apache: Serve all URLs on a domain with the index page, without rewriting path?

I'm writing a Backbone.js application that makes use of the HTML5 history API. I would like users to be able to create URLs of the form: domain.com/any domain.com/random ...
2
votes
1answer
1k views

htaccess: how to rewrite to clean urls and redirect old urls to the new clean ones? [duplicate]

With htaccess I'm trying to make my sites urls clean. I use very basic urls like: www.mysite.com/pagename.php ("pagename" is variable). I want www.mysite.com/pagename to display the content of ...
0
votes
3answers
337 views

How do I configure my server to forward “domain.com” to “www.domain.com”?

I need to forward all visitors from "domain.com" to "www.domain.com". I know this has something to do with altering the nginx config file but am not sure what to do or what code to use. I am using ...
0
votes
1answer
204 views

toggling URL Rewrite Rules on IIS7 causes CLR to crash

Scenario: Many users (between 10 & 100) are browsing the site, and as they browse, URL Rewrite / Redirect rules are being toggled. The application crashes at random times with the following ...
-1
votes
1answer
863 views

Mask URL part while proxying Tomcat webapp through Nginx

I've got the webbapp at the server 1.1.1.1:8080/AppName/ Now I need to hide port and AppName dir URL part. So I installed Nginx on server 2.2.2.2 with virthost name test.com. Here is the virthost ...
0
votes
2answers
388 views

IIS 7 404 redirect for virtual directories

we are in the middle of setting up a website and one of the developers has asked me a question im a little but stuck on. basically we have a website that a user can visit and create there own ...
1
vote
2answers
316 views

Rewrite Conditions Backreferences passed to all rules?

Is there a way to get back references for Rewrite Conditions to be passed to all subsequent rewrite rules? Here's an example: RewriteEngine On RewriteCond %{HTTP_HOST} (bob).localhost [NC] ...
1
vote
1answer
155 views

Rewrite URL - redirect everything BUT images

HI, I have a working redirection that looks like this RewriteRule ^(.*)weihnachtsshop/(.*)$ /hochzeitsshop [R=301,L] everything like www.shop.com/weihnachtsshop/product.html get's redirceted to ...
0
votes
1answer
33 views

Why does domain/folder/ and domain/folder///// return the same location?

Why does domain/folder/ and domain/folder///// return the same location in a browser's URL address bar? Windows 7 + Firefox
3
votes
3answers
4k views

IIS URL Rewrite HTTP to HTTPS with Port

My website has two bindings: 1000 and 1443 (port 80/443 are in use by another website on the same IIS instance). Port 1000 is HTTP, port 1443 is HTTPS. What I want to do is redirect any incoming ...
1
vote
2answers
911 views

IIS 7 URL Rewrite to GeoServer running on Apache

I'm building a mapping application based on OpenLayers that uses GeoServer to serve up mapping data. The problem I'm having is that besides the map images I'm requesting through WMS, I'm using jQuery ...
0
votes
1answer
213 views

URLs with final slash trigger hotlink protection on my server

in all my Apache servers I use hotlink protection because I hate the idea someone could stick my images/flash in their sites using my server bandwidth. In order to make hotlink protection work, in my ...