url-rewriting

"Dynamic" parts in URL

The application i'm making starts Internet Explorer with a specific URL. for instance, this fake url: &aqi=g10&aql="3"&oq="3" how can i change that url into this one: &aqi=g10&aql="2"&oq="2" by using an item from a combobox? What i'm trying to do is changing a part of the URL with selecting an item in a combobox and then executin...

Making a 301 rewrite from within a folder using relative rewrite URLs

I have the following problem. We used many different URLs to the same page. Now we want to use only one URL for those pages. Here an example: RewriteRule ^(subfolder1/folder1/|(subfolder2|subfolder3)/folder2/|folder3/)?(name1|name2|name3|name4)$ scriptname.php [QSA,NC] As you can see it is pretty messy. What I now want to do is the fo...

Dealing with / in IIS URL rewrites

Hi All, I am using IIS7 URL rewriting with my website which is written in ASP.NET. I am not sure the best way to deal with / in the rewritten URL because currently, when one is present it breaks the parameters because the engine thinks it needs to split it at the wrong place. For example, a url like: www.test.com/myscript.aspx?code=dot...

Change single variable value in querystring

hi guys, I am given a page url like 'http://abc.com/test.php?a=1&b=2&c=3'. Now I have been told to change the value of b to 5 so that it becomes 'http://abc.com/test.php?a=1&b=5&c=3'. i.e change from http://abc.com/test.php?a=1&b=2&c=3 to http://abc.com/test.php?a=1&b=5&c=3 Note: variable b here can ref...

asp.net consecutive are backslashes removed from url

I'm having an issue in my ASP.NET web app where intentionally consecutive backslashes are being removed from the request url. I'll request something like: localhost/Page/A//C But when the request hits the page, the raw url is: localhost/Page/A/C Not sure if this is the culprit, but I do have a Url Rewite regex in place, here's the rul...

.htaccess : some rewrite rules case to solve...

I have 2 little cases in htaccess rules that I have to solve, .... with your help... :) The first one is that: I Have a subdomain on clientWebsite in there is an htaccess file and an folder like that: .htaccess uploads 2010 mwdia1.jpg media2.jpg The .htaccess file contains: RewriteEngine on RewriteCond %{HTTP_HOST} hello.clie...

301 Redirect from sub1.mydomain.com to anotherdomain.com/sub1

I have already built a site with a strong page ranking in Google, but I started with too many subdomains, so I've re-worked the code so that it can all be one a single domain. I have created a separate app which ought to simply act as a filter, permenantly redirecting all requests made to sub1.mydomain.com/something?id=hi to anotherdoma...

URL Rewrite in ASP.NET 3.5 and IIS 7 using HTTP Module

Hi StackOverflow, I am developing an application in ASP.NET 3.5 and IIS 7. I have written an HTTP Module to perform URL Rewrite, for instance, I want to rewrite a username to an Account ID "~/Profiles/profile.aspx?AccountID=" + account.AccountID.ToString(); See below: using System; using System.Collections.Generic; using System.Data;...

mvc2 - getting the URL to reflect the form submission

I have an MVC2 application with a form (like ya do). The user enters a query into the form (in the /Cars/Index view) and hits the "submit" button which posts to the Details action of CarsController - the Details view renders with results, and all is well and good. The user can enter a URL (such as /Cars/Details/123-125) and they get th...

static page links not working without index.php in front

Hi, I created static pages in admin and when I try to open www.website.com/static-page-identifier We get 404 page If we put index.php in front like this www.website.com/index.php/static-page-identifier It works I have checked that mod-rewrite works on server. I have been switching 'Use Web Server Rewrites' to yes and no in magen...

How is this url configured?

I just bought a script online. On the home page (index.php) there's link <a href="lookup.html">lookup</a> Acturally, the page lookup.html does not exist. When you click the link, it still brings you to lookup.html, of which the content is run by lookup.php. I don't any place where lookup.php is invoked. I checked .htaccess file set...

help with redirecting a specific page in nginx

I have been trying to do this for the last 4 hours and have searched everywhere. it would be great if you could help me with nginx rewrite rules. I am trying to temporarily redirect hxxp://siteA/[dir] to hxxp://siteB/[dir] except for hxxp://siteA/?page=4 which I want to redirect to hxxp://siteB/?page=343 Here are the rules I have serv...

Utility or opensource to implement Routing and Url-Rewritting in asp.net 3.5

Hello Experts, I need to implement Routing or Url-Rewriting in my application. So, is there any utility like logging utility Elmah. I dont want to write much code, I need to configure and start playing. Any help will be most appreciated. ...