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
1answer
82 views

VirtualHost/htacess : how to point a subdomain to an url parameter?

I must to create a multi-languages website. In order to achieve this aim, I want to point subdomain representing a language to the 1rst url parameter (GET variable) of the domain in my virtualhost ...
0
votes
1answer
126 views

Configuring IIS rewrite module to redirect any host name to a specific host name

I have a website whose name I am changing from example.com to newexample.com. My thought process (please comment on this as well, as my approach may be incorrect) was to configure permanent a ...
0
votes
0answers
58 views

IIS url rewrite with rewritemaps non working

on IIS 7 windows 2008r2 we are have URL rewrite module working with external rewrite config files working fine. When I try to add an extral rule to redirect a special path to another site it doesn't ...
0
votes
1answer
18 views

proxy with rewrite including headers

I'm trying to figure out the easiest way to proxy a wordpress site to a subdirectory of another site. So, I have a wordpress site articles.blah.com/subdir/. It writes html with absolute paths like ...
0
votes
2answers
92 views

IIS reverse proxy / re-write rule to redirect requests to another port

I am attempting to rewrite requests for http://redmine (where IIS is bound) to http://web01:8080/redmine (where apache is bound and ruby is serving redmine). Noet that I also have an A record binding ...
-2
votes
1answer
74 views

remove everything but domain name from url

I am looking if the is an easy way to keep the webpage always with the URL like: http://example.com at the time there are request like http://example.com?target=dirigido ...
-2
votes
1answer
25 views

.htaccess rule not working [closed]

This is my .htaccess code ... the first condition is working and the other one is not RewriteEngine On RewriteRule ^([\w-]+)/?$ Page.php?PageID=$1 [L] # Process parrots RewriteRule ...
1
vote
0answers
91 views

nginx proxy_pass adds port number to URL

I have a standard Rails app deployed to Heroku. I am using custom buildpacks to install nginx so I can create some rewrite rules and a reverse proxy. I have it mostly working save for one issue. I ...
1
vote
2answers
191 views

rewrite or internal redirection cycle while internally redirecting error on Nginx

I just migrate from Apache to Nginx and trying to set up rewrite rules. I have a virtual host and this is the structure of virtual host /var/www/name-of-virtual-host/ ├── wp1 │   ├── wp-admin │   ├── ...
0
votes
3answers
57 views

Nginx rewrite and proxying

I am trying to combine these 2 Nginx location definitions into 1 location /v1/login { proxy_pass http://upstream/v1/login; proxy_redirect off; proxy_set_header Host ...
0
votes
0answers
117 views

Rewrite request from POST to GET with nginx

I've got a backend server that, for various reasons, only processes GET requests. This server is located behind nginx proxy (i.e. all access is done to nginx, which proxies it to the backend with ...
1
vote
0answers
189 views

captive portal / walled garden on pop up window on android not appearing

I don't normally ask for help, but i've been stuck on this for a couple of days - and any pointers anyone may have will be very much appreciated. I have created a wifi hotspot (captive portal / ...
0
votes
0answers
11 views

IIS Url Rewrite Rule with Conditions Not Triggering

I am having trouble with using conditions in an IIS Url Rewrite rule. I want to perform the following logic: Match any request for a URL that: begins with "tools/" does not match specific ...
0
votes
1answer
149 views

Redirect respecting port in the host header?

I'm often working with tunneled ports where I'll SSH forward a remote port 80 to a local port 8080. One of the interesting problems I run into is that when I have a rule like this in NGINX: rewrite ...
1
vote
1answer
88 views

Match … character in rewrite rule with nginx

I have a problem, where someone has added a link to our site - but its getting cut off. I'm seeing in the log file, as: /info-cry%E2%80%A6 Seeing as I know what that is mean't to be going to, I'm ...
0
votes
1answer
26 views

Rewrite subdomains in Nginx

Because I don't want to use CDN anymore I would like to rewrite cdn.example.com to www.example.com. How to do this with Nginx? There is only www.example.com in my server block.
0
votes
1answer
129 views

Using IIS ARR and URL Rewrite to send Webservice requests to a new server

We are trying move our web services from Azure Cloud Services to Azure Web Apps and that would change their address but we have some clients that we are not able to update the address they are using, ...
0
votes
0answers
20 views

nginx rewrite rules for language

the effect I want: abc.com/hello => abc.com/article.php?link=hello abc.com/en/ => abc.com/index.php?lang=en abc.com/en/hello => abc.com/article.php?link=hello&lang=en what I did: ...
0
votes
0answers
10 views

Httpd RewriteMap using QueryString [duplicate]

I'm trying to redirect the following request http://host.com/foo?bar=xxx+aGVsbG8K&other=value to http://host.com/hello?bar=xxx&other=value Where aGVsbG8K is base64 encode version of hello I ...
0
votes
1answer
74 views

apache forward proxy - how to override a destination address?

I'm running apache as a forward proxy to do header injection, URL manipulation, and request logging for some Android apps and I'd need to override the destination for some requests. For example, ...
0
votes
0answers
17 views

iis 7.5 - convert rewrite rules to rewritemaps

I am using IIS7.5 and url_rewrite and I need to rewrite some urls with the following pattern: /departments/oldname1 --> /departments/newname1 /departments/oldname2/oldname3 --> ...
1
vote
1answer
50 views

Redirect rules for .htaccess with mod_rewrite

I have a PHP script dynamically generating content from a database based on queries. The user might do a search from a text box for the username "mark". The content is provided by PHP at ...
0
votes
0answers
85 views

IIS ARR UrlRewrite - Preserve original protocol and port of incoming requests

I'm trying to setup a reverse proxy using IIS with ARR and url rewrite modules. The destination web server host has a website that has multiple bindings for different sites: VM 1 site A - https:443 ...
0
votes
0answers
114 views

Converting NGINX to apache rewrite rules

Currently I am doing a project setup in my local(Apache) whichi is in NGINX. I am facing trouble in converting the rules from NGINX to .htaccess rules. Can some one help me out in converting the ...
0
votes
0answers
21 views

Nginx wordpress redirects

I've been trying to set up some rewrite rules using Nginx for example: location /dir { rewrite ^/dir/foo.php /index.php?pagename=dir&method=foo break; } However I'm always getting a file not ...
0
votes
1answer
46 views

nginx rewrite specific subdomain to nonssl

I have a 301 redirect that writes all subdomains to https. now the client would like to have a http only subdomain. how should i catch this request in the https server and redirect it to http? server ...
0
votes
0answers
55 views

IIS 7.5 ARR 3.0 with subdirectory

I'm trying to work out the best way of sitting two external unrelated services to be accessible through the same url through a IIS reverse proxy as such example.com → default web site ...
0
votes
1answer
162 views

Nginx discards data after number sign (#)

I have existing request which looks like https://smth.ru/smth/GET_DATA?p_DATA_TYPE=arg1#arg2&arg2=XXX I know that is awfully incorrect but I have to work with it. And it worked ealier with ...
0
votes
0answers
99 views

IIS rewrite/redirect rule to make a URL friendly subsite

i'm trying to make a url friendly subsite in IIS, but i'm having troubles defining rewrite/redirect rules: what i'm expecting: Transform these: http://10.28.1.104/portal/v3/main/view ...
0
votes
0answers
165 views

NGINX rewrite IP.Board URLs for Xenforo

I am having a hell of a time getting rewrites working under NGINX to rewrite old URL's to point at a new file. XenForo's forums offer up this config: location /ipb/ { if ($uri ~* ...
0
votes
1answer
55 views

RewriteRule force SSL without WWW

How can i force SSL without WWW # SSL-FORCE RewriteCond %{SERVER_PORT} !443 RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L] Works but i can also open the site with www. Thanks in advance.
1
vote
1answer
109 views

Remove query strings only on requests requiring PHP (ignoring static files and certain urls)

One of my sites keeps getting spammed with fake URL requests containing query strings. I have caching in place but unfortunately query strings are ignored. Now every time I get a flood of query ...
0
votes
1answer
276 views

How to use rewrite rules in iis and windows authenication

Hi I've got a server with iis, and I've made some rewrite rules for the project I'm working on. They work fine, I've tested them on a development machine and they are all fine. However on this ...
0
votes
0answers
5 views

Apache config with rewrite causes loop [duplicate]

I have to port a WebApp to a new server. On both servers I use the Apache 2.x webserver. I have to redirect every user from m.domain.com/$restOfPath to m.domain.com/mobil/$restOfPath. With ...
0
votes
1answer
31 views

Nginx rewrite issue with sub folder

I'm try to redirect an URL but nothings happen. :( The source URL example like this: http://example.com/download.php?shortURL=MJdcqV Where the MJdcqV is a variable parameter, all others constant. I ...
0
votes
3answers
1k views

IIS 8.5 URL Rewrite just wont work: rules have no affect at all

I am trying to set up http to https rewrite in IIS 8.5 using the Rewrite module. Absolutely nothing I have tried has any affect whatsoever. The URL is of the form: http://users-dev.somedomain.com. The ...
1
vote
0answers
24 views

Converting lighttpd rewrite rules to apache

I'm in the process of converting an application from Unix to a Windows based infrastructure, one of the changes being made is utilizing apache instead of lighttpd for the web server. Most of this ...
0
votes
1answer
454 views

nginx geoip redirect for first time only leads to redirect loop

I'm trying to configure nginx to perform geoIP checks on first-time visitors only. The idea is that first-time visitors should be redirected to the page version which has been customised for their ...
0
votes
2answers
43 views

Redirect document root within VirtualHost

I am trying to redirect my domain to a new document root if a cookie value is something. I did setup the rewrite and it works fine. RewriteLog "/home/user/dev/logs/rewrite.log" RewriteLogLevel 3 ...
0
votes
0answers
137 views

404 Not Found or 500 internal server error using nginx try_files configuration

I'm trying to move my project from Apache to nginx. I use WT-NMP. I'm converting .htaccess to nginx configuration by adding this in nginx.conf. location / { try_files $uri $uri/ /index.php/$args; ...
0
votes
0answers
35 views

LampCMS works as a sub-directory on Apache but fails on Nginx

The Web Application: It is LampCMS within a Wordpress folder. The main web site runs on Wordpress. A requirement made us create LampCMS under this Wordpress site. LampCMS is accessed over a URL ...
0
votes
0answers
480 views

Remove query string from url

We have a magento store which appends a query to our URL when you change Magento store views on the frontend. i.e. http://www.domain.com/?___store=uken Is there a way to remove the ?___store=uken ...
0
votes
0answers
70 views

Trying to disable Apache compression for an URL, but I can't get it to work

I'm trying to disable Apache compression for certain URLs by adding the lines below to .htaccess. I'm trying to get one URL working, but I can't get it to ignore the URL - Apache still renders those ...
0
votes
0answers
144 views

Tuckey UrlRewriteFilter unable to match regex with positive lookahead

This is about Turkey's UrlRewriteFilter I have a rule to convert the first segment of url to lowercase, provided that there's an uppercase letter in it. This is what it looks like: <rule> ...
0
votes
0answers
115 views

IIS 8 Rewrite rule gives me 404 error

I used following Rewrite rule on IIS 8 for asp.net application. But it gives me 404 error when I try to access www.mysiteurl.com/?_escaped_fragment_. If I change actionType to Redirect it redirect ...
0
votes
1answer
121 views

Two URLs, one website, different domains

We have a website running under abc.company.com. We've been asked to make the website available under a different url from a different domain by a customer, let's say stuff.abc.com. They've arranged ...
3
votes
1answer
3k views

What is the difference between Nginx variables $host, $http_host, and $server_name?

What is the difference between the three Nginx variables $host, $http_host, and $server_name? I have a rewrite rule where I'm not sure which one I should be using: location = /vb/showthread.php { ...
1
vote
1answer
96 views

How to use Nginx to both rewrite and proxy_pass whilst keeping the user-entered URL

I'm a beginner Nginx user trying to proxy the following: http://subdomain.example.com/mypage/login TO http://some_ip_address/login (not just /login - the site has other contexts too e.g. /static, ...
1
vote
0answers
71 views

Nginx rewrite rules for all vhosts

I have a huge referer blacklist with that I want to stop referer spam on all my websites (https://perishablepress.com/blacklist/ultimate-referrer-blacklist.txt). Currently I have to change all my ...
0
votes
0answers
31 views

rewrite nginx 2 parameters

server { listen 127.0.0.1:80; server_name ap5 www.ap5; root home/ap5/public_html; index index.php index.html; log_not_found off; access_log logs/ap5-access.log; error_log logs/error.log error; ...