Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [url-rewriting]

The tag has no usage guidance.

0
votes
2answers
21 views

How to prefix a url with another url in a web browser using a bookmarklet?

There's a web service called outline.com. You paste urls into that website and it reloads the page in a neat formatting without the additional junk from the original page. Another method is to prefix ...
1
vote
0answers
70 views

Nginx rewrite URL to not show file path

Apologies in advance. I'm a beginner with Nginx and have a lot to learn with server administration. After doing a bunch of searching and reading, I'm really not understanding a direct solution to my ...
0
votes
0answers
14 views

Is there a way to resolve subdomain.domain.com to domain.com/subdomain

Is there a way to resolve or convert username.domain.com to domain.com/username if someone types in username.domain.com? Basically, our current system uses username.domain.com for replicating ...
0
votes
0answers
69 views

Apache mod_rewrite for Proxying with HTTP URL basic authentication

An app on my server produces URLs with basic HTTP authentication such as: http://user:pass@ip:port/var1 However, I want to use these in an application which doesn’t support this form of auth, so I ...
0
votes
0answers
51 views

How to configure Firefox to allow opening a test site in browser as is and not auto add prefix https

I have created a WordPress website test-site using MAMP Server software on my local Macintosh computer. Before today, I was able to type in that test-site name (example: janis.dev). The browser then ...
0
votes
1answer
116 views

Removing lingering end string after RewriteRule

I've tried everything but just can't seem to get things right :( I have over 800 urls and I need to rewrite them to point to a simple pdf file. Currently, I have links to: http://subdomain.mydomain....
0
votes
0answers
88 views

Styles doesn't load in virtual host with XAMPP

I need to access a project from my phone. I have a virtual host set like this: <VirtualHost project.pp:80> ServerAdmin webmaster@localhost DocumentRoot C:/xampp/htdocs/project.pp ServerName ...
0
votes
0answers
800 views

Use nginx to invoke a script

I want to use a specific URL to invoke a maintenance script (related to my other question). I don't want to have to manage this maintenance script as a service/server because it will usually only be ...
1
vote
1answer
153 views

Forward subdomain1.example.com to subomain2.example2.com using .htaccess

My Goal My main website is being hosted by a 3rd party server (Netfirms to be precise). I want most of my content hosted there. However, I am running an employee portal on a local server. The portal ...
0
votes
1answer
105 views

how do i program abyss web server X2 URL Rewriting to produce a Mediawiki short url

All of the refernces i find expplaining how to complete this are incorrect for this web server. i have the tools to do this URL rewriting what i need is a real how to complete this. i have abyss web ...
2
votes
0answers
474 views

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 <rewrite> <rules> ...
0
votes
1answer
2k views

.htaccess RewriteRule to redirect all to root

I would like to redirect every request to root by using RewriteRules in my .htaccess file (later on I will copy them to a vhost file). I tried something like this: RewriteRule ^(.*)$ http://test....
1
vote
1answer
703 views

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 ...
1
vote
0answers
107 views

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 ...
1
vote
2answers
1k views

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!
0
votes
1answer
1k views

Try to rewrite to a different URL if it would result in 404

I have a local tomcat server that I'm developing for using my local IIS instance as a proxy. I do this because deploying the server is a painful process since a lot of the content isn't (what I would ...
0
votes
0answers
200 views

URL Rewrite - rewrite all requests unless they are for an existing application

In IIS, would like to rewrite all requests at the Default Web Site level to mainApplication unless they are requests for otherApp, or thisApp, or thatApp and so on. Is there a way to do this without ...
0
votes
2answers
4k views

Apache http to https redirect with Rewrite

Using Apache 2.4 on OS X Yosemite. Need to modify this virtual host for it to redirect http://server.kibana and http://www.server.kibana to https://server.kibana Here is the Vhost: <VirtualHost *:...
2
votes
1answer
5k views

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 ...
1
vote
1answer
1k views

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. ...
0
votes
1answer
36 views

MAMP : socket problems for external ressources

i have a problem with sockets on MAMP. i access to my localhost website with localhost:8888/sitename but external ressources like CSS are loaded with localhost/url without socket so request is aborted....
2
votes
1answer
3k views

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....
1
vote
0answers
208 views

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 ...
2
votes
0answers
583 views

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 ...
0
votes
2answers
143 views

Why the other URL is opening instead of the expected URL after clicking on a link received from google search in Firefox?

I'm using Mozilla Firefox on my PC. When I search something using google a list of results get displayed, till then it functions properly. But when I right click or left click on any of the links from ...
1
vote
2answers
79 views

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....
1
vote
0answers
417 views

apache rewrite to different domain subfolder without changing the address in browser url

Actually we have 2 sites. Site 1: Desktop version hosted in [http://mysite1.com] , using Apache server Site2: Mobile version of mysite.com is hosted in [http://mobilesites.com/mysite1mobile] , using ...
0
votes
1answer
1k views

Rewrite a specific path in xginx

I am trying to rewrite a specific path using nginx. I have setup my server using nginx/php-fpm/php and it is working fine. I have the following server configuration: server { listen 80; ...
17
votes
1answer
37k views

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 ...
-1
votes
1answer
2k views

Which browser does not support Unicode in URLs? [closed]

One time, one guy has come to the office and showed me that Polish characters in a website URL's path part was percentage-encoded. Currently, I'm looking for browser with similar behaviour for testing,...
2
votes
2answers
4k views

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 ...
2
votes
2answers
4k views

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 ...
1
vote
4answers
15k views

Why doesn't my HOSTS file redirect DNS in Windows 7?

I've modified the HOSTS file on my Windows 7 machine in exactly the same manner as I have in the past on my Vista and XP machines; however it has had no effect. How do you redirect URLs in Windows 7 ...
7
votes
5answers
10k views

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 ...
0
votes
1answer
122 views

How to redirect http://mysite/css/ to http://server1.mysite.com/css?

How can i redirect all requests passed to http://mysite.com/css to http://otherserver.otherserver.com/css ? User typing http://mysite.com/css/somefile.css and go redirect to http://...
0
votes
2answers
351 views

Looking for firefox plugin that redirects links to https for certain domain

There is one or two websites where which support both http and https where i want to use https, but where links, redirects, js redirects ... keep sending me to http-locations. Do any of you know of a ...
0
votes
1answer
2k views

How to set up www cname for free dyndns subdomain

I have a free dyndns domain mk12.gotdns.com How can I set up a cname for www.mk12.gotdns.com to point to mk12.gotdns.com? And how can I force the www one, so that if you navigate to mk12.gotdns....