URL rewriting allows websites to "re-write" or change the address displayed to a user the following is an example of a rewritten url and the original url (these are made up examples). original: http://www.domain.com/index.php?user=1 rewritten: http://www.domain.com/user/david
1
vote
1answer
23 views
url rewrite to different domain
I have access to a folder on a web server in which I would like to put a .htaccess file to so that when a user visits www.somesite.com/myfolder/index.html they get shown the content of a page on ...
1
vote
0answers
6 views
How to set up an asp.net web site in a subfolder of another web site while still being able to use user controls?
I have this scenario:
Website1 (site1.com)
Website2 (site2.com)
In IIS 6.0 site1.com is set up as a web site. There is a subfolder in site1.com called site2 that I want to use to serve up site2 ...
0
votes
1answer
32 views
Rewrite URLs with Apache (to be used in combination with mod_proxy)
I'm using Apache and mod_proxy to provide access to the Monit GUI over HTTP. So far my configuration is as follows:
ProxyRequests Off
<Proxy *>
Order deny,allow
...
2
votes
1answer
60 views
Configuring WordPress rewrite rules on IIS7.5 inside virtual application
I have to configure WordPress into a virtual application under a principal website running on ASP.NET 2.0 Classic mode.
Everything is working fine, PHP 5.3.13 / MySQL 5.1 / IIS 7.5, the wordpress ...
0
votes
2answers
57 views
nginx: remove string in $host
server {
server_name *.com.another.com;
location / {
root /var/www/html/$host;
index index.html;
}
}
On above example, if someone make a request to ...
1
vote
0answers
41 views
ARR Reverse Proxy and multiple sites as subdirectories with IIS 7.5
I have multiple websites (combination of ASP.NET Webforms and MVC3) that we are trying to consolidate under a single domain with each site under a directory on this main domain.
So I want to take the ...
0
votes
1answer
39 views
Rewrite rule conversion help - Apache to Nginx
Looking to convert the follow Apache rewrite rules over to Nginx. We are trying to get this to work on a subdirectory but can't seem to get the syntax down correctly.
RewriteRule ^([^//]+)/?(.{2})?/$ ...
0
votes
1answer
36 views
nginx rewrite rules for cached images
we are currently migratiing all services from apache2 to nginx but are currently stuck with a specific rewrite rule.
The rule in apache is checking if a cached image/thumbnail exists and if so, ...
1
vote
3answers
42 views
Apache mod_rewrite, multiple variables
I'm struggling a bit with mod_rewrite and replacing multiple variables with regexes. I'm trying to rewrite the following:
www.mysite.com/avatars/funny/1
into:
...
1
vote
1answer
62 views
Nginx rewrite and - char in domain name
I have domain name which contains - char. For example my-domain.com. When I use rewrite, Nginx rewrites url wrongly, browser is redirected to my.com instead of my-domain.com. What is wrong in my ...
2
votes
3answers
85 views
mod_rewrite, clean URLs, and page content directories
I am using mod_rewrite in an .htaccess file in our root web directory so that we can use cleaner URLs for some specific cases. For example, we want to translate:
...
0
votes
0answers
54 views
Convert .htaccess from Apache to Nginx
i have this .htaccess configuration but I can't make it work with nginx.
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^$ webroot/ [L]
RewriteRule (.*) webroot/$1 [L]
...
1
vote
1answer
50 views
How to write a URL rewrite rule in g-wan?
I want URLs with the host foobar.com to be rewritten to www.foobar.com. How can I do this with g-wan?
1
vote
1answer
50 views
IIS + UrlRewritingNet.UrlRewrite: Overwrite existing URL?
I'm trying to over-ride default behavior in my CMS, but without hacking the core or doing anything outright barbarous. As a result I'm trying to rewrite all requests to
...
1
vote
0answers
32 views
Routing a url to fetch content from another site
Environment: IIS 7.
I have a default site www.domain.com and its folder is C:Inetpub/wwwroot/domain There is subdomain www.subdomain.domain.com and its folder is C:Inetpub/wwwroot/domain/subdomain.
...
2
votes
1answer
194 views
Trying to use Nginx try_files to emulate Apache MultiViews
I want a request to http://example.com/foobar to return http://example.com/foobar.jpg. (Or .gif, .html, .whatever)
This is trivial to do with Apache MultiViews, and it seems like it would be equally ...
0
votes
1answer
55 views
Use IIS URL Rewrite module to point to a subdomain
My web page is located at maxpavlov.com/interesting/fileupload/
Can I use URL Rewrite module in IIS to have a user address bar show file.maxpavlov.com every time he visits the aforementioned url?
0
votes
1answer
31 views
mod_rewrite adds .html when redirecting
I have a redirect situation where the site is part dynamic and part generated .html files.
For example, mysite.com/homepage and mysite.com/products/42 are actually static html files
Whereas other ...
0
votes
1answer
202 views
IIS URL Rewrite Module Query String Parameters
Is it possible to use URL Rewrite to provide more complex query string functionality than the "Append query string" checkbox that it has? Specifically, is it possible to specify the keys for certain ...
1
vote
1answer
83 views
IIRF on IIS 6 Rejects Server Connections
My clients have two sites (call them, say, mainsite and subsite) that are run as subscription services. They want clients to be able to access subsite only if they've got a paid subscription on their ...
0
votes
1answer
55 views
Apache RewriteEngine, redirect sub-directory to another script
I've been trying to achieve this since about 1.5 hours now. I want to have the following transformations when requesting sites on my website:
homepage.com/ => index.php
...
2
votes
1answer
105 views
Can I configure IIS 7+ to do a dynamic reverse proxy based on the incoming hostname?
I am trying to configure IIS to proxy requests based on the incoming hostname. For example, if my proxy server is an IIS server located at www.proxy.com, a request to www.google.com.www.proxy.com ...
1
vote
3answers
74 views
Apache url rewrite plus sign not working as expected
I'd like to rewrite my site url of below two patterns (note: there are a lot such urls that i hope to use one rule to rewrite them all)
www.hetaoblog.com/hello
www.hetaoblog.com/hello/
to
...
0
votes
1answer
110 views
HAProxy - Perform multiple rewrites based on conditions
I am trying to rewrite a URI as well as a host header based on some conditions. Here is an example of what I'm trying to accomplish:
I request http://sub1.example.com/test/files/other
if ...
0
votes
1answer
121 views
Nginx proxy_pass Base64 URL truncated
I use a non caching Nginx proxy to map some path on port 80 to an application specific http server on another port.
That works quite well for almost all URLs, however long URLs containing Base64 ...
0
votes
0answers
69 views
nginx how to rewrite /about_us.htm to /about
How do I redirect /about_us.htm to /about in nginx? Migrating old site to a WordPress setup and none of the old PageRanked URLs work.
I'm trying rewrite ^/about_us.htm /about last; but it's not ...
3
votes
1answer
46 views
Part of my URL is being stripped away
I've discovered that one of the sites on our web server is having part certain URLs stripped away. Specifically, when a user clicks the link to display images as a slideshow the URL for that page has ...
0
votes
0answers
136 views
ARR 2.5 on IIS 7.5 not routing to localhost:8080 properly as reverse proxy
I followed this Step by Step guide to hosting teamcity in iis 7 in order to access my CI server (Jenkins) via IIS and port 80
kill
I set up the ARR rules to route my subdomain ci.hat-tip.co.uk, and ...
0
votes
1answer
45 views
Rewrite rules for https only for login with htaccess
I am using apache, and i have on my index page (index.php) a login and password field.
The authentification is made with the login.php page and then if i am authaurize i can reach the next page ...
2
votes
1answer
67 views
nginx is redirecting instead of rewriting when there is a slash befor arguments
I have the following location block, as part of a complex routing for a CMS:
location @mylocation {
if (-d $request_filename) {
rewrite ^/(.*)$ /$controller/$siteName last;
...
1
vote
1answer
42 views
Saving website level rewrite rules to applicationHost.config
Is it possible to save rewrite rules configured on the level of a website to the applicationHost.config, while using IIS Manager? (I know how to do that manually)
By default they are saved to ...
1
vote
0answers
66 views
mod_rewrite: internal rewrite to (fake) clean URL not possible.
This is more a why question.
I'm using a CMS that handles clean URLs via mod_rewrite out of the box.
Website has a section /accessories that now has to be renamed to /store.
Being on lazy mode, I ...
0
votes
2answers
215 views
URL Rewrite module from IIS7.5 to Tomcat 6.0
We have a Java application which will be installed into tomcat6. Our security team will not allow Tomcat to be public facing so I am in a postion where I have to recieve https traffic to IIS 7.5 and ...
0
votes
1answer
161 views
Images and AJAX not loading with mod_proxy_html turned on
Our company is currently supporting a (very old) web-enabled database application written in 4th Dimension (2003) with a built-in web server (provided by an extension called Web Server 4D). Since the ...
0
votes
1answer
21 views
301 redirect (mod rewrite) a whole folder and all files with the get parameters
I want to redirect all urls starting with www.site.com/online/ to www.site.com
some examples of the files I'm trying to redirect are ...
...
0
votes
0answers
41 views
Mod_rewrite and relative substitution paths in virtualhost context
I'm trying to simply rewrite:
http://www.example.com/home
to
http://www.example.com/home.php
I'm not using .htaccess, but setting rewrite rules in a vhost:
<VirtualHost *:80>
...
1
vote
1answer
124 views
Nginx remove base url
I'm trying to setup Django through UWSGI using Nginx.
I got the UWSGI pass to work using this function
location / {
include uwsgi_params;
...
1
vote
1answer
40 views
Using ARR to expose TFS project portal to internet
I have a public facing web server at www.evju.biz serving several pages (it's behind a NAT'ed firewall) I also have another internal server "winttfs" hosting a TFS server.
I have the URL ...
2
votes
2answers
99 views
Rewrite URL Domain Name when IP address used
My apache home server listens for HTTP requests on an alternate port (port 8080), but I would like to let users type my domain name (example.com) without having to specify the port.
So far I've ...
0
votes
1answer
67 views
nginx extending a rewrite rule with a condition
I have the following rewrite rule, used for WordPress Network to handle the file requests:
location @rewrite {
rewrite ^/(.*)$ ...
0
votes
1answer
40 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
87 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
...
0
votes
2answers
80 views
Cant get RewriteCond rule to work in mod_rewrite
I have the following path:
http://www.domain.com/cgi-bin/hsrun.exe/Distributed/Postphil/postphil.htx;start=DetectLanguage?Language=LANG_Icelandic
If the path contains the folder /postphil I want to ...
0
votes
0answers
91 views
IIS & Tomcat integration with URL rewritting
I have a java webapp running in a Tomcat 6 server, on the same box I have the static part of the site being served from IIS 7.5. I've used ARR to successfully route the requests down into the Tomcat ...
0
votes
3answers
107 views
Host Multiple Web Applications Under a Single Domain
I have a single Domain that I would like to share across two web applications. One Wordpress, the other Rails hosted on two separate servers. Specifically, I would like a handful of url resources ...
0
votes
1answer
602 views
nginx proxypass rewrite base url
I'm trying to setup Nginx to forward requests to several backend services using proxy_pass.
A few of them don't support being accessed under a sub-folder, so I have to add a rewrite to strip the ...
0
votes
2answers
160 views
Virtual hosts on apache to point domain.com, domain.net, domain.org to all go to domain.com
All of the names currently point to the same web server folder which is correct. That is, the domain.net, domain.org, etc all work without redirecting to the main .com
How do I get visits to the .org ...
0
votes
1answer
138 views
(Probably) Simple mod_rewrite - remapping my site's URLs
This problem is driving me nuts. I've tried reading loads of tutorials about how to use mod_rewrite but I just can't get my head around it.
These questions must get asked all the time, so apologies ...
0
votes
1answer
104 views
How to rewrite Rejected-By-Urlscan in ISS7
I'm migrating an ASP.NET app from IIS6 to IIS7 and in doing this I'm also porting my rewrite settings from Intelligencia.UrlRewriter to using IIS rewriting.
In have some problems with ...
1
vote
1answer
78 views
Is it possible to have dynamic proxy_remote_match directives in apache2 or work around it somehow?
I am running a forward proxy, where I want to forward certain requests to different proxy servers using ProxyRemote. Which request goes to which server depends on many factors (time, load, url, host, ...