Questions tagged [url-rewriting]
49 questions
28
votes
2 answers
Nginx rewrite rule to remove path node
Let's say a user tries to access a given image on my website using the following url:
http://www.mywebsite.com/blog/image1.jpg?someParam=100
i need a rewrite rule to this, removing the 'blog' node from the…
marcosbeirigo
- 383
7
votes
5 answers
HOSTS File Edit in Windows 7 Not Effective - Pinging URL Still Shows Original IP Address
I've edited my HOSTS file on my Windows 7 Ultimate PC to re-route a couple of URLs so that they point to 127.0.0.1, but after saving the file (and re-opening to verify the changes were written) and pinging them they still reply with the actual IP…
Sootah
- 619
3
votes
1 answer
IIS URL-rewrite doesn't work
I have an IIS setup with redirect rules that work perfectly fine on my Windows machine. However - I'm starting to use Mac - so I installed a VirtualBox VM with windows on it and used the exact same setup. Now the windows VM I got running on…
3
votes
2 answers
IIS 7 Url Rewrite for only port 80
I have a site where any traffic coming in on port 80 needs to be redirected to port 443 (https). According to this article, that is easy enough and it works. My problem is, however, that this is a load balanced environment. I want to open up a…
Josh
- 205
2
votes
0 answers
Simple IIS url-rewite not working
I installed the URL Rewrite module, I got the URL Rewrite option in IIS manager, but I cannot get even the simplest thing working!
I have this simple rule
…
Greg Bala
- 89
2
votes
2 answers
How do I extract a parameter within a URL in Excel?
I have the following URL in my Excel sheet rows:
www.test.com/folder1/?tagid=1234567
How do I extract the tagid value into a separate column so I simply have "1234567".
Thanks!
Nick R
- 23
2
votes
1 answer
Set up a catch-all inside a location with fallback to index.php
I'm struggling with nginx config. I have a server block where I want all requests to go to index.php?tags=$uri, unless $uri exists (like index.php?a=b or /?a=b).
I would expect:
try_files $uri index.php?tags=$uri;
but, no, that would be too simple.…
Rudie
- 769
2
votes
0 answers
Url rewriting faliure in case of UTF8 urls in nginx
I am using Nginx webserver and I want to rewrite some old urls on my site to new ones inorder to prevent 404 errors. For English urls everything is OK and adding a rewrite rule like the following to the server block works fine.
rewrite ^/omid/$…
omidrezav
- 21
2
votes
2 answers
IIS URL Rewrite 2 installed but can't find it
My company had their website built in ASP.NET, and for SEO purposes we want to change the URLs and asked the company who built the site if we could do it ourselves. They said use IIS URL Rewrite 2.
I installed it on my computer, but when looking at…
RSM
- 443
2
votes
0 answers
Using URL Rewrite in IIS as Reverse Proxy
I am running a IIS server acting as a reverse proxy using URL ReWrite. It is being set up to forward https web requests as http to a web server inside our network. It appears to be forwarding correctly, but it is not sending the x-forwarded proto…
Jmmitche1984
- 21
1
vote
1 answer
Nginx catch all domain, then add www if not present
This setup is for multiple domain sharing a single CMS platform. It will allow any domain to point to my server ip.
I can use nginx server_name _; to catch all.
But then I would like to 301 redirect to www (appending www. infront) if www is not…
Syed
- 11
1
vote
0 answers
Ubuntu 14.04 Nginx Rewrite rule issue
Problem with nginx mod rewrite. Really appreciate help. I spent hours on that issue
Problem with rewriting url.
I want rewrite from bangots.eu/?subtopic=highscores bangots.eu/?subtopic=houses
to get this
bangots.eu/highscores bangots.eu/houses
I…
Szmycu
- 11
1
vote
1 answer
Using Apache Httpd mod_rewrite to rewrite URL based on Accept request header?
I'm attempting to rewrite a URL based on the Accept header of the request. I saw in the docs that this seems to be possible, but I couldn't find any details or examples anywhere on how to go about it.
Basically I'd like requests to /abc/index.html…
Edy Bourne
- 983
- 1
- 8
- 11
1
vote
0 answers
Rewrite all web requests in Chrome
I'd like to rewrite all web requests in Chrome, including js/css includes and ajax requests. For example:
change http://foo.com/index.htm
to http://bar.com?url=http://foo.com/index.htm
I've tried to use xrewrite extension for chrome but it seems to…
James
- 153
1
vote
2 answers
Create custom base URL for ID number
In either Internet Explorer or Firefox, I would like to be able to type something short (i.e. go ###), and have it automcatiicaly change the go to a full prefix web address (i.e. http://go.microsoft.com/fwlink/?LinkID=). Is there a way to do this in…
Canadian Luke
- 24,640