url-rewriting

How to remove http:// from a website URL

Question: I just stumbled upon: http://icculus.org/~chunky/writing/inetd I realized it removes the http://www in front of the URL. How is that done? I am not aware of URL-rewriting being able to do that, or not ? ...

UrlRewriter.Net with URL with final dot

I want to use UrlRewriter.Net as described in this blog by ScottGu. In the example below, page.aspx should display a page text stored in the database based on the title= URL parameter. After a couple of tweaks the only remaining issue seems to be that a final dot in the URL causes a 404 a sequence of two dots in the URL causes a 400...

Are there any open source ASP.Net plug-ins/modules for Vanity URLs for SEO?

I am developing a public website on ASP.Net MVC and I am looking for open source libraries for SEO that give me following functionality. Vanity URLs that have URL format like "mysite.com/<category>/<title>" Sets Title of the page to something like "<site name>/<title>" Sets Meta Tags in the HTML header Puts H1 tag around page title in ...

mod_rewrite - convert querystring to paths

Im trying to rewrite a url that has a query string to its SEO friendly name i.e. consider mysite.com/models?p1=v1&p2=v2&p3=v3&p4=v4&p5=v5&p6=v6 Id like it to rewrite to mysite.com/models/v1/v2/v3/v4/v5/v6 or mysite.com/models~v1~v2~v3~v4~v5~v6 whichever works better for SEO. any suggestions j ...

Asp.net URL rewriting (regular Expressions)

Can anybody help me regarding URL rewriting. As I have the URLs like http://somedomain.com/products.aspx?id=1 and i want to rewrite this like somedomain.com/productname and rest of the URLs on the domain work as they are provided. like somedomain.com/forums/categories.aspx I don't want to rewrite these other URLs Regards, John ...

Debugging ASP.NET 4.0 site in VS 2010 with URL Rewrite enabled

is this something basic or am I missing something? My ASP.NET (4.0) site has a web.config with URL rewrite rules. When I run it in debug mode (local webserver) all the URLs fail because the local web server does not recognize the rules (e.g. I have /register which maps to register.aspx etc.) Is there someway I can get the debug system ...

create subdomain like urls with username in .net

hi is it possible to rewrite url in .net in this way: username.mysite.com mapped to mysite.com/users.aspx?id=username ...

ASP.NET web pages without aspx file extension

Hello, What is best solution to serve ASP.NET web pages without aspx extension? I want to make http://www.mydomain.com/mypage instead of http://www.mydomain.com/mypage.aspx I use .NET 2.0 and IIS6 ...

Can I reformat my URL parameters with Varnish

Hello, I have a relatively simple (I think) use-case but I can't find any examples where someone has done this. We are using Varnish as a cache and reverse proxy in front of two different applications and would like to make things a bit more unified across both as they both do similar things. I was hoping Varnish could help rewrite the U...

URL Routing,cleaner urls without id

HI All, I got a question about the URL Routing feature in .Net 4.0 My URL the I want to rewrite is : www.mysite.com/counties.aspx?id=12 I could make it work like that : www.mysite.com/12/egypt But I want it to work without passing the id of the country in the query to look like this www.mysite.com/egypt So ,I want to know how can I p...

htaccess / apache automatically mapping to php files?

I'm working with htaccess in a php application. I want some behavior like this: Send request to mydomain.com/login Have htaccess intercept the request to login and send to index.php?ref=login However I have that all set up and for some reason it automatically sends the mydomain.com/login request directly to login.php without going t...

rewrite url using htaccess

How can I change url in this way using htaccess: http://example.com/page.php?go=something.php should be redirected to: http://example.com/something If the get parameter name is different than 'go' leave as it is... ...

Regex question using IIS7's URL Rewrite module

I'm using URL Rewrite module in IIS7 and using the User Friendly URL Rule template. I'm trying to get URLs like: Something/param1/something/param2/something/param3/something/something2/ etc.etc. to rewrite to SomethingEnd.aspx?param1=something&param2=something&param3=something/something2& etc.etc. Using the templates, it automatic...

URL rewriting using .htaccess

I have my link like this /product.php?id=1 I want to rewrite that in .htaccess like /productname/id or /productname/1. Can you help me guys, I’m using PHP? ...

apache/htaccess url rewriting help .

Okay what i want to do is ... http://domain.com/hdu79ejo above should be redirected to http://domain.com/client/?share=hdu79ejo where hdu79ejo can be any value. But ... http://domain.com/client and http://domain.com should not be redirected at all. Here is my code RewriteEngine on RewriteCond $1 !^(client) RewriteRule ...

Regex help needed!

I'm working on a multilingual application that uses IIS7-based url rewriting. I'd like the following Url actions: 1. fr-ca > index.aspx?l=&lc=fr-ca 2. fr-ca/ > index.aspx?l=&lc=fr-ca 3. fr-ca/568/sometitle > index.aspx?l=568&lc=fr-ca 4. 568/sometitle > > index.aspx?l=568&lc= Essentially, the initial fr-ca is optional. My current rul...

problem with url rewriting

I have the following code from my global.asax Application_BeginRequest method which looks for a possible SEO page name with an id and rewrites the url. This has been working just fine for a couple of years now. Recently I was asked to add a utm_source parameter to the page/querystring that is translated. I started with a url like "seo...

Customize URL SEO

I have link www.mydomain.com/page.php?pageid=10 I want to change into www.mydomain.com/10 please help me this guys. ...

URL Rewrite Module. Rule doesn't work for urls containing "+" sign

The following rule works (successfully redirects) for urls like: www.site.com/some/path But doesn't work (404) for urls containing + sign: www.site.com/some/p+a+t+h And doesn't work (404) even when encoded: www.site.com/some/p%2Ba%2Bt%2Bh But works, when + is going after ? sign: www.site.com/some/path?+ Rule: <rule name="red...

IIS URL Rewriting/Forwarding Tiny URL

Hi all, I would like to rewrite/forward an URL on our internal network: request: http://shortcut/74b32 rewriting: http://myserver/Default.aspx?id=74b32 I already have a DNS entry for shortcut that points to myserver. myserver runs IIS6. How can I implement the final mapping? Thanks a lot chris ...