Tagged Questions

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

Correct rewrite syntax to remove index.php

I got an nginx vHost that hosts: a CMS in / a magento shop in /store Things are running fine except one thing: Removing index.php from the URL. At the moment the following URLs are working ...
0
votes
0answers
20 views

Rewriting a file location with web.config wildcard

A sample location of a file is: /sites/default/files/reports/2010_Audit_Summary_Report.pdf I want to be able to access this same .PDF but with a path of: /reports/2010_Audit_Summary_Report.pdf I ...
-1
votes
1answer
44 views

Really struggling with nginx rewrites to https [on hold]

I hope someone can help. I am new to ubuntu and nginx and have set up my own server (with the help of various guides around the internet) Here is my setup. ubuntu server 14.04, nginx, php5 fpm, ...
0
votes
1answer
28 views

rewrite rule is ignored

I have some problems with rewrite rule. I have 2 scripts, article.php?url= and product.php?ulrprodus= and I want to setup for them rewrite rules like below: My Rewrite rules: RewriteEngine On ...
0
votes
0answers
16 views

Apache rewrite isn't redirecting on ec2

I'm using Elastic Beanstalk with Amazon. I'm trying to setup Apache virtual host on the ec2 instance. No matter what I try, it doesn't seem to work. I'm using the following examples. ...
0
votes
1answer
27 views

Joomla URL Rewriting works automatically in Nginx

This is driving me nuts and I dont understand how this works automatically. I have nginx as my web server and I have installed Joomla that has URL Rewriting which removes the index.php from the URL. ...
0
votes
2answers
45 views

Folder outside of root folder and URL Rewrites

is the following scenario possible and how do I archive that in a shared hosting environment? I have a Wordpress installation which resides in, say, /httpdocs/wordpress My domain points to this ...
0
votes
2answers
27 views

Apache Alias to link to another DocumentRoot

I have a WordPress installed in /var/www/wordpress/ and my own code in /var/www/project/ Now comes the following problem: When I try to access example.com/client/ or example.com/admin/ it should link ...
0
votes
0answers
9 views

Rquested URL and physical path mismatch in IIS 7

I have deployed a new windows 2008 r2 server with iis 7 I'm facing difficulties with CGI ( perl ) domains My domain uses " discusware application " which stores the contents under " cgi-bin " folder ...
1
vote
0answers
40 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> ...
0
votes
1answer
14 views

Apache redirect and pass query string on to remote host

I'm hoping this is super easy for someone. I need to create a redirect in apache where... http://something.com/a/1234567890 -> http://other.com/a/1234567890 http://something.com/a/8971347873 -> ...
0
votes
1answer
38 views

Using IIS URL Rewrite to redirect from one sub domain to another

I'm trying to set up IIS to redirect traffic from https://sub.foo.com to https://www.foo.com, but NOT redirecting any traffic to https://sub.foo.com/bar. The regular HTTP redirect module doesn't allow ...
0
votes
1answer
40 views

Nginx does not redirect with rewrite

I have a nginx + php on windows server configured. I work on an MVC framework with url rewriting, the problem is that my server does not resolve the addresses. Quite simply, this is my code: server { ...
-1
votes
1answer
43 views

Redirect all traffic to https apart from a single URL with Apache [duplicate]

I want all traffic to the non-https example.com and www.example.com to be redirected to the https www.example.com with the exception of a certain path, i.e. http://www.example.com/import , ...
1
vote
1answer
42 views

nginx - proxy pass without redirection

I have a website in AngularJS. Site uses hashbang mode and I am currently having a situation with prerendering. My website has an URL like this: http://www.watchawearin.com/#!/item/511 and I have a ...
0
votes
0answers
12 views

Redirect an old existing opencms url to new joomla url

I am currently working on redirecting the old url of one of our opencms site to the new url which is in the joomla platform. I've been trying for some time now but I can't seem to get it. I have tried ...
-2
votes
0answers
23 views

can anybody assist with my rewrite rule not redirecting from https to http [duplicate]

can anybody explain me why this rewrite rule ( apache ifmodule ) does not work ? heres the code: RewriteCond %{HTTP_HOST} ^(www\.)?foo-center.eu$ [NC] RewriteCond %{HTTPS} on RewriteRule ^(.*)$ ...
0
votes
0answers
36 views

HTTPS on RoundCube & Phpmyadmin

Since 2 months we ordered a new server from OVH. Installed this server with the OVH DirectAdmin image and configured everything like it should be. However there is just one little problem. When my ...
0
votes
1answer
21 views

IIS 7.5 URL Rewrite and 404 Not Found

I'm trying to setup a reverse proxy using IIS to proxy request on port 80 to a local virtual machine on port 8080. The rewriting rule was setup using IIS GUI "Reverse Proxy" rule. However it work very ...
1
vote
3answers
108 views

Apache Rewrite rules for SSL in sub domain

I have a web site deployed that uses kohana and URL rewriting to make the URLs more restful. This works fine. I also have Moodle installed in a sub directory on the same server and a subdomain ...
0
votes
1answer
79 views

With nginx serve a custom 404 page with header 404, without changing the browseraddress

How do I force nginx to serve a custom 404 page while responding with a 404 header, without changing the address of the browser so the user can easily retype? I tried this at my testsite (added after ...
-1
votes
1answer
34 views

Apache mod_rewrite to Nginx rewrite

I have a virtual private server with whm/cpanel. I have installed nginx_admin plugin. The plugin has created virtual host files (example.com, *.example.com and manage.example.com) In my old apache ...
1
vote
0answers
25 views

Complex IIS URL Rewrite

I've beat my head against Google trying to get this to work, but I suppose I just don't fully understand the rewrite engine or I stink at regex. Here's my scenario, though. I'm using IIS 7.5 with URL ...
0
votes
1answer
14 views

GIF loses mime type with Apache rewrite

Got problem with a gif that loses it's animation with the rewrites I'm doing. RewriteRule ^journal/(.+)\.(jpeg|jpg|png|mp4|webm|ogv)$ app/uploads/journal/$1 [QSA,L] RewriteRule ^journal/(.+)\.(gif)$ ...
0
votes
1answer
33 views

Redirect multiple browser requests to one site with IIS URL request

we have a web server with several websites. Of these, only one site has real content, the other sites are used to redirect requests to the content site. This is done by the IIS http redirect. ...
0
votes
1answer
15 views

Route request to Tomcat only if file doesn't exist on disk

I have Apache in front of my Tomcat installation as a reverse proxy. Most URLs are routed to Tomcat by a JkMount directive in Apache. For one URL pattern I'd like Apache to route requests to the ...
0
votes
1answer
21 views

Nginx and complex URI rewrites

I'm having problem with getting logic behind Nginx rewrites. Are they supposed to be in server or location directive? I need to rewrite one long and scary URL to another. Is there anyone who can ...
0
votes
1answer
43 views

Tomcat 7 URL rewrite from other domain

On a tomcat 7 server, we've configured a https connector, the TLS certificate is valid for an URL like www.example.com . Now we want to change the A record of one of our subdomains (like foo.bar.com) ...
0
votes
0answers
60 views

outbound rule IIS Application Request Routing and URL Rewrite to properly replicate Apache ProxyPass ProxyPassReverse?

EDIT: See end of post on that a ReverseProxy Outbound rule is needed. With Apache ProxyPass and ProxyPassReverse one can add the following to the Apache config of serverA: ProxyPass /foo ...
1
vote
1answer
20 views

How can I deny access to a folder in OpenLiteSpeed similarly to the way Apache does it?

I'm trying to deny access to a folder for a website that is hosted with OpenLiteSpeed v1.4.2, but I'm have trouble. I take it that .htaccess isn't supported in OpenLiteSpeed so I am unable to just put ...
0
votes
1answer
38 views

Forcing https redirect is rewriting all URLs to root directory and not appending latter half of URL

I'm forcing http to https with the following in .htaccess: ## Forcing https RewriteCond %{HTTPS} !^on$ RewriteRule (.*) https://website.com/$1 [R,L] Following that, I also have a redirect that ...
0
votes
1answer
36 views

Nginx Passenger Node Application URI Rewrite

I have a node application that accepts all routes starting at /. The Nginx / Passenger configuration for it is: server { listen 8889; server_name localhost; location / { root ...
1
vote
0answers
26 views

Delayed requests when using ARR with IIS 8.0 on Windows 2012

I've got a setup on Windows Server 2012 R2, using IIS8.0 which passes certain requests through to a custom backend using Application Request Rerouting. The backend is only listening on IPv4 on port ...
1
vote
0answers
33 views

apache rewrite through proxy remote

We are trying to write a reverse proxy rule to an external site. ProxyRequests On ProxyRemote https://abc.company.com http://proxy.company.com:80 ProxyPass /_vti_bin/AccountList.asmx/ ...
0
votes
2answers
86 views

Nginx Wordpress rewrite for multiple sub-folders

I am currently setting up our new server for our company, and we are developing alot of different apps, and right now we want to have all our wordpress apps under wp.domain.com/app1, ...
0
votes
1answer
40 views

Nginx rewrite for a large group of URL's to a 444

I am looking for a rewrite that will pick up any number of defined URL's and do a return 444 on any of them. Rather than writing out each one individually, I was hoping for something where I could do ...
1
vote
1answer
79 views

Manage nginx rewrites in project folder

I am trying to figure out on how to migrate from Apache to nginx, keeping rewrite rules flexible to change for developers. This is our current setup: We have a .htaccess file in the root folder of ...
0
votes
0answers
36 views

Apache + WebDAV: Redirect user to an individual subdirectory (with the use of WebDAV clients)

I'm trying to set up WebDAV and would like to provide a private "Home Directory" for each user. When a user connects to the WebDAV server, he should be automatically redirected to his home directory ...
0
votes
1answer
84 views

Nginx - proxy_pass - specific location not working

I am trying to masking a remote URL with Nginx using proxy_pass I'd like to load staging.saas.localhost/_ when the browser url is saas.localhost/uk_staging. For some reason the location in ...
0
votes
2answers
45 views

Nginx rewrite rules with php args

I have 2 websites, http://localhost/bb -- phpbb http://localhost/dp -- Drupal I wish to redirect $server_name/bb/ucp.php?mode=logout&sid=xxxxx to $server_name/dp/user/logout, the sid should be ...
0
votes
1answer
52 views

Nginx Not Passing Rewrites To PHP-FPM

I have the following rewrite rules for nginx. The rules seem to not function correctly, for example the rule for games is supposed to rewrite http://thegamesdb.net/game/2/ to ...
0
votes
2answers
49 views

Nginx : rewrite request for 'p.test-prd.com.local' to 'www.test.com'

For various reasons, we follow an internal DNS scheme where the internal test site for 'www.test.com' would be 'p.test-tst.com.local'. I won't go into the details why we ended up with the scheme we're ...
0
votes
1answer
84 views

How do I place an SPA in a S3 state website subdirectory using rewrite rules?

I have successfully deployed AngularJS apps to S3 in the past with html5mode enabled in order to allow for hash-less URLs. For my current project, however, I need to place the Angular portion of the ...
0
votes
2answers
56 views

How to stop Apache from finding a filename from a URL path (without the extension)

I have a file update.php in my doc root. But I don't want /update in my URL to direct to update.php (because I want /update to be associated with a page in my CMS, Drupal 7) I know that Apache is ...
0
votes
1answer
26 views

Apache Redirect for Internal Traffic Only

We have a page, gateway.school.edu, where users have to fill out a recaptcha before being directed forward to our password reset. I would like any internal traffic, any user agent on our network with ...
0
votes
2answers
36 views

blogger to pelican nginx rewrite rule

I just converted my blog from blogger to pelican. On blogger, posts used to be something like: http://blog.example.com/2014/09/title-slug.html, now my blog on pelican is ...
0
votes
1answer
13 views

Removing the prepended directories from $1 variable in a rewrite rule

I have this rewrite rule RedirectRule ^(/arf/sites/.*)$ /docs/saf/files$1 [R=301,I,L] When it redirects, $1 contains /arf/sites/filename.html so after the redirect, the visitor ends up at ...
0
votes
2answers
151 views

nginx use rewrite as dynamic 404 image

I want to get a dynamic 404 response depending on the requested url: foo.jpg doesn't exist http://example.com/img/style/thumbnail/foo.jpg should show ...
1
vote
2answers
186 views

nginx + varnish, optimize caching urls for ssl and not

I have a working varnish cache for my websites, with the undesired side effect that requests for a domain with http are cached with a certain url, and requests for https with another url. That way I ...
1
vote
1answer
86 views

Rewriting (not redirecting) a URL in Nginx

I have a situation that I think is a bit different from most. It's certainly different from any that I've encountered before: I'm building a site for a client who wants/needs to retain full control ...