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)

-1
votes
0answers
21 views

HTTPS redirects with cloudflare SSL

I am using the Cloudflare to expose my application server as http and https. Because the nginx back-end is http, internal redirects (http 201, 301, 302) contain the server http address in the Location ...
0
votes
1answer
51 views

Subdomain With Custom URL/Domain

I have a subdomain called 'mysite' at this.example.org/mysite which needs to resolve to mysite.org in the address bar. Can this be accomplished with .htaccess in the mysite public_html folder, or ...
-1
votes
1answer
30 views

Case insensitivity in nginx [duplicate]

We have several SEO pages like: http://www.example.com/PageOne.html Which we redirect in config like: location = /PageOne.html { rewrite ^/(.*) /seo.php?id=1 last; } Problem is if a user ...
2
votes
1answer
61 views

Nginx rewrite, reset rewrite or add extensions to a specific directory

Here's my nginx site config: server { server_name DOMAIN.COM; access_log /srv/www/DOMAIN.COM/logs/access.log; error_log /srv/www/DOMAIN.COM/logs/error.log; root /srv/www/DOMAIN.COM/public_html; ...
2
votes
1answer
35 views

Nginx rewrite: remove ? after filename.php

Here's my current nginx site config: server { server_name DOMAIN; access_log /srv/www/DOMAIN/logs/access.log; error_log /srv/www/DOMAIN/logs/error.log; root /srv/www/DOMAIN/public_html; location / { ...
0
votes
0answers
5 views

Pass request cookies to Squid url_rewrite_program

I am using Squid to rewrite requests and cache them. I have written a squid url_rewrite_program using python to rewrite request. Basic rewriting works well. But most of the requests have cookies ...
0
votes
2answers
24 views

NginX redirect domain.com to domain.com/path when accessing domain.com

So basically I had to proxypass the root of a web server @ / but the application is hosted at /ui When they don't manually type /ui they are presented with the home page of the server, which is ...
0
votes
0answers
8 views

Rewrite and redirect from two parameter dynamic URL to a static URL with .htaccess, Second Parameter should be comma seperated

I am trying to rewrite and redirect from http://example.com/page.php?fid=123&name=title%20of%20the%20blog to http://example.com/name/title-of-the-blog.jsp. So that if either of the above URLs is ...
0
votes
0answers
7 views

Redirect iis to RD web access on another server

I am deploying a new windows 2012 server with remote desktop services role. I already have another windows 2008 r2 server that serves as my web- and exchangeserver. When i request the rd web access ...
0
votes
1answer
33 views

Getting Nginx working with /index.php/something

I'm trying to migrate from Apache to Nginx. I'm using Nginx 1.8.1 and PHP 5.6 Apache accepts URLs like this: domain.com/site/index.php/something and calls index.php script with the parameter ...
1
vote
1answer
31 views

How to delete hyphen and underscore from url string in nginx?

I have been trying to delete ANY/ALL hyphens - and underscores _ from an incoming URL request to my nginx server. So to be clear, when someone enters a URL as follows: ...
0
votes
0answers
19 views

A specific issue with Apache 2.2 URL rewriting

How can I use mod_rewrite to change the URL from http://mindnmotion.com/mindnmotion/2015/12/26/poverty-and-homelessness/ to http://mindnmotion.com/2015/12/26/poverty-and-homelessness/ I do not have ...
0
votes
1answer
44 views

My nginx conf disallow real folders access and index

I have Cockpit CMS installed and with this conf file, every real folders where I have files or subwebsites that I want to share or access are interpreted as 404 pages, I guess because of this part : ...
0
votes
1answer
12 views

Using URL Rewrite and ARR for redirecting to same server

The scenario: A web server running a single site under two different addresses: www.mysite.com (regular site) ws1.mysite.com (web services) Both are accessible via HTTPS, and both are running on ...
0
votes
1answer
10 views

IIS URL Rewrite - Rewriting for subfolders to pages

All, I have spent almost a day trying to figure this out. I am helpless now after all the searches and want to reach out to the community. I want to redirect any traffic on my website based on the ...
-1
votes
0answers
19 views

Nginx subdirectory redirection

On my site "www.mysite.com", my root path is "/var/www/mysite.com", I want when i use "www.mysite.com/test", the nginx to make the root path "/var/www/mysite.com/test/web/app.php" But the browser ...
0
votes
0answers
6 views

IIS “”URL-Rewrite“ Rule to forward all requests ”made to a folder“ ”to a specific file"?

I'd like to forward all requests made to: http://domain.com/api (like http://domain.com/api/getUsers or http://domain.com/api/newUser) to http://domain.com/api/index.php So, if a user requests ...
1
vote
0answers
22 views

Apache rewrite rule 403 error

I'm running Apache 2.2.15 with rewrite_module installed. I have rule in my vhost.conf as follows; RewriteRule \n ^/advanced/selector/profiles/([A-Za-z0-9]+)/?$ \n ...
0
votes
2answers
49 views

Nginx serve plain file if exists else serve /index.php

I want Nginx to serve any requests for static files on its own, but if the file doesn't exist, then serve index.php which will handle it all Currently my configuration looks like this, server { ...
0
votes
1answer
23 views

Add a path after / to http request in HAProxxy

I am currently redirecting my users from get.foo.com to foodownload.com, and then they can click and download bar.mp4. I want before redirecting, change the path, so by entering get.foo.com, their url ...
0
votes
0answers
54 views

Fix ERR_TOO_MANY_REDIRECTS after adding trailing slash in URL

I have a Magento website hosted in a managed server where we need to use two .htaccess files, the first one is needed to redirect all request to a subfolder /current/src/ and is placed directly in ...
0
votes
0answers
11 views

IIS URL rewrite with exclusion rule

The rewrite rule below rewrites any URLs starting with either "profiles" or "jobs", e.g. www.example.com/profiles or www.example.com/jobs. That works, but I want it to work, UNLESS a "/" and a number ...
0
votes
1answer
27 views

nginx: String Replace plus sign with hyphen

I am trying to rewrite hundreds of URLs, and I've gotten pretty close except for one scenario. Some URLs look like this: /city/?sl_city=CityName&directory_nonce=45ad967e02 But some have a + as ...
0
votes
1answer
31 views

url rewrite, nginx throw 404 errors, nothing in error logs

below rewrite works fine: rewrite ^/city/restaurants$ /city/listings/restaurants permanent; but this doesnt work rewrite ^/city/restaurants$ /city/listings/restaurants last; rewrite ...
0
votes
2answers
66 views

Redirecting www to non-www (apache, letsencrypt )

Ubuntu 14.04 Apache 2.4.18 I have set up a SSL certificate using letsencrypt. It works well but in order to work, I cannot have multiple vhost defined in one virtualhost configuration file. Each ...
-1
votes
0answers
20 views

nginx: rewrite relative paths and exclude some paths

Here again the bloody regex: i want to rewrite from : /city/listings/restaurants to /city/restaurants *i.e: i want to remove listings from url* **** pls note "city" and "restaurants" always ...
0
votes
1answer
45 views

Apache redirect - let's encrypt SSL certificate redirecting to naked domain rather than www

I recently set up a new website running off Wordpress which is working nicely. Since I wanted to have an SSL certificate for the website I thought I'd use Let's Encrypt since I've been hearing a lot ...
0
votes
0answers
42 views

Enable Rewrite in nginx

rewrite not working, this is my nginx -V and installed via 'apt-get' how to enable 'rewrite' module ? root@server:~# nginx -V nginx version: nginx/1.9.9 built by gcc 4.8.4 (Ubuntu ...
0
votes
0answers
25 views

I have an intranet dns alias I want to redirect to a specific server site

I have an internal dns "VideoApp" that resolves to a development web server: Server101.dev.ourdomain.com The COTS app requires HTTPS and is one of many sites on the server. I want to be able to ...
0
votes
0answers
27 views

laravel site using hhvm broke rewriting url

I tried to find a solution everywhere, even if the answers look close to my issue I was not able to have the correct solution. I built a website with laravel. My config is the following : laravel ...
0
votes
2answers
9 views

I need help setting up httpd.conf file to perform redirects to same site if accessed via http and https

I am pretty much a newb at http configuration, so please bear with me (I inherited support of this system). My web server is running behind an F5 which handles all of the https handshaking. If the ...
1
vote
1answer
28 views

Why nginx redirects after form submit?

I have conf: location ~ ^/secret(.+) { rewrite ^/secret(.+)$ /phpmyadmin$1; } location /phpmyadmin { root /usr/share/; index index.php index.html ...
0
votes
1answer
47 views

Nginx 301 redirect of a single URL

I am trying to redirect a specific URL like: http://www.domain.com/cadena-de-metas I am doing this via my config file in /sites-available/ if ( $request_filename ~ cadena-de-metas/ ) { ...
0
votes
0answers
8 views

Redirect to URI + Query String using .htaccess [duplicate]

I am trying to setup my WordPress to redirect URL to URL+QueryStrying. I want to redirect http://example.com/path/uri/ to http://example.com/path/uri/?query_string=true I have tried different ...
0
votes
1answer
30 views

URL rewriting Issue with html pages in IIS6 asp.net (2.0) application

I am using URL rewriting for asp.net (2.0)application on Server 2003 with IIS 6 Website url example mywebsite.com and mywebsite.com/blog. mywebsite.com runnig with.aspx and .html pages Database: SQL ...
0
votes
0answers
10 views

Apache ProxyPass rules to stop at first match [duplicate]

I want to stop ProxyPass rules to stop executing at first match. I've given some rewrite rules in the end. So Rewriterules are getting executed all the time. Below is the two lines, i want to work ...
0
votes
1answer
16 views

Wordpress SSL switch/rewrite base on request (fixing insecure content)

I have a small Wordpress site to share my hobby. My webhost is SSL enabled and I successfully set the "force SSL login" option. But because I started without SSL there are mixed protocols in the ...
0
votes
2answers
35 views

Why rewrite(nginx) redirects with 301 code?

I have this configuration: location ~ ^/myway(.*) { rewrite ^/myway(.*)$ /anotherway$1; rewrite_log on; error_log /var/log/nginx/errors notice; } location /anotherway { ... ...
0
votes
3answers
69 views

How to make Apache’s mod_rewrite redirect over HTTPS by default?

Let’s say I have a website that is available over HTTPS, e.g. https://example.com/foo. Consider the following .htaccess: RewriteBase / RewriteEngine On RewriteRule ^foo$ bar [R=301,L] Now, when I ...
0
votes
1answer
22 views

Redirecting all requests on one domain to https non-www

I have an ISPConfig 3 site running on one domain. I have multiple vhost files for the different applications I run through Apache. I want to enable https://example.com/%QUERY_STRING% on every request ...
0
votes
0answers
16 views

How to redirect single domain and URL using IIS URL Rewrite?

We have an IIS setup that's bound to multiple host names. There's a canonical domain rewrite rule configured to redirect all host names to one primary host. We want to add a specific redirect for one ...
3
votes
1answer
87 views

Apache Directives Ordering: Global, Pre-VHost, or in Directory blocks

I'm setting up my first virtual server from scratch (provider name omitted but it's a 'droplet'). I've been using WHM for a while and I feel I'm fairly familiar with it. Specifically, it's a Debian 8 ...
1
vote
0answers
53 views

Apache exit signal Segmentation fault when mod_rewrite and fcgi are used together

I am using Ubuntu 15.04, Apache/2.4.10. I enabled mod_rewrite and mod_proxy_fcgi. My apache config for fcgi is: ProxyPassMatch ^/(.+\.(hh|php)(/.*)?)$ fcgi://127.0.0.1:9000/var/www/html/myapp/$1 ...
0
votes
0answers
25 views

IIS ARR URL Rewrite giving issue for larger OwnCloud uploads

I have a domain with sub domains set-up for owa.domain.co.uk owncloud.domain.co.uk wiki.domain.co.uk All these domains forward to my IIS 7 system from there I am using ARR and URL Rewrite to ...
3
votes
1answer
41 views

What is the reason for redirecting the landing page of a site to a URL with '/#/' at the end?

What is the reason for redirecting the landing page of a site to a URL with '/#/' at the end? The system administrators at my company use a Apache reverse proxy, and they always redirect all the ...
3
votes
1answer
37 views

nginx rewrite of url with query string

I have been googling for a good while and can't figure this one out. It seems simple, and I am sure it is, but I am not a server expert. My url is: http://www.example.com/blog/?tag=Word1+Word2 Some ...
0
votes
0answers
22 views

IIS Url Rewrite and Authorization header

I configured IIS to rewrite all requests to http://localhost/rest/ to go to http://localhost:9955/RestService/v2/. All works fine. However, when the request sent from the browser contains ...
1
vote
1answer
26 views

How to set certain key-value pair to every html sent by nginx without lossing other key-value pairs?

I want to set the value of mode in every html's search string using nginx. I wrote codes like this: if ( $arg_mode !~ test ){ rewrite ^(?:/(.*)\.html)?$ /$1.html?mode=test? redirect; } But ...
1
vote
0answers
18 views

mod_rewrite and double slash issue

I am getting mod_rewrite and double slash issue can you please help me out. # ProxyPass /balancer-manager ! RewriteRule /phoenix/^(.*) ...
0
votes
0answers
17 views

IIS Rewrite: Redirect HTTP to HTTPS and vice versa, but not all sites

I'm struggling with redirect from HTTP to HTTPS and vice versa. What I want to achieve is the following. Redirect all ASPX-Pages from HTTP to HTTPS with the following exception. don't redirect ...