url-rewriting

How to SEO friendly an existing ASP .NET 3.5 web application under IIS6

So, I know there's a lot of this subject here and over the Internet. But most articles/questions refers to "static" url rewriting, like: www.site.com/products.aspx?category=Books So they rewrite it to www.site.com/Products/Books That's ok but I need something else. The site is like a CMS, it has different types of content. Nowad...

url rewriting an id with a string variable

trying to figure out how to rewrite this url clientside blog.com/post/how-to-get-the-ladies to point serverside to blog.com/post.php?id=123 i know how to do this: blog.com/post/123 RewriteRule ^([^/]+)/?$ post.php?id=$1 [NC,L] but how do you replace the id string with the post title slug? ...

IonicIsapiRewriter doesn't work on Windows 2008 but does in Vista

I am migrating my sites from a Windows 2003 server to Windows 2008 however the url rewriting application simply doesnt work when set up on the Windows 2008. Any ideas? I just get 404's instead of it trying to rewrite the url. I have tried using MS Urlrewriting module but it doesnt appear to work either as I have to use the app in Integ...

Need to implement or duplicate url rewritings for membership project - but don't want to use heavy framework...

Hi guys, I have a simple membership project and teh client wishes that urls be simple rather than having something like: index.php?p=view-member&id=568157&hash=00218546598797898798162454712 he would like to see it as so: website.com/member/username Now I've worked with Zend and understand you need to do some htaccess alterations to g...

Why is my variable not being put into $_GET?

Hey everyone, Maybe I am missing something but I can't seem to figure this one out. I have a ReWriteRule: RewriteRule ^view/(\w+)$ view.php?mmdid=$1 [L] and when I go to mydomain.org/view/3, the $_GET array is empty. There is no key 'mmdid'. However, when I change my rule to something else, such as: RewriteRule ^viewz/(\w+)$ view....

Passing querystring Ids URL Routing using namespace system.web.Routing

I'm new to URL routing. Case 1: I can implement URL Routing for URL:/content/category.aspx mapped to /Reservation Case 2: I'm not quite sure how to handle the query string values. For example: URL:/content/category.aspx?SID=5&CID=191 I want this to map to: /Reservation Code written for Case 1: Global.asa Sub Application_Start(By...

Can i rewrite URL in MSVS?

I am using MSVS 2008, C#, ASP.NET project. Right now i can serve any pages i want under http://localhost:3288/ExistingPageInProject.aspx In MSVS how do i map http://localhost:3288/u/SOME_USER_NAME/media/TITLE-0123 to point to a file/page i have. Such as /u/ExamplePage?name=SOME_USER_NAME&title=TITLE-0123 NOTE: 0123 is the mediaId so th...

Hiding default.aspx from the URL

Hi all. I wanted to know if there is a solution using IIS6 for an application to get rid of the default.aspx text in the url. so for example if a user hits: www.website.com/default.aspx the browser only shows: www.website.com/ No matter what. It's just for SEO. I already use UrlRewriting.NET for some rewrites in my app but for I'm ...

IIS 6 compression on Urlrewritten pages doesn't work

I'm developing a asp.net site (running .net 3.5 SP 1) and using UrlRewriter.Net (http://urlrewriter.net/) for urlrewriting. The site is hostet on a Windows 2003 server with all servicepacks and so forth. It runs IIS 6. In order to enable url rewriting I've setup a wildcard handler for *, which means all requests are sent through the a...

C++ Library for session management?

This is in reference to question How to maintain sessions with C++ code? Is there a C++ library (like Boost) available to manage sessions for web based CGI applications? How feasible is it to make use of Cookies and URL Rewriting in C++ code for web based CGI applications? ...

Serving different pages as different Domain Names in IIS (6 or 7)

Hi, I have a ASP.Net MVC application which serves user pages with URL like - www.myapp.com/user/rob/index, www.myapp.com/user/rob/article/1 and www.myapp.com/user/scott/index, www.myapp.com/user/scott/article/1 now I want this one application to serve pages to two different domains from outside. Like - www.RobWebSite.com/Index ww...

how to "rewrite rule" for a sub-sub-directory? .htaccess/php

Hi I have one folder named test located at www.mydomain.com/abc/files/test. I need to change the URLs from www.mydomain.com/abc/files/test/test.php?id=15&key=some-text123 to www.mydomain.com/abc/files/test/15/some-text123 this is similiar to SO urls. I tried following in .htaccess file with following code RewriteEngine on Options +F...

Are absolute href's OK to use on production sites?

Because of some apache rewrite rules in a project I'm working on, it's convenient to make href's and links in general absolute, because that assures that the browser will find the file behind that link, no matter what the URL is. Example: <img src="http://localhost/project/gfx/abc.jpg"&gt;&lt;/img&gt; instead of <img src="gfx/abc...

RegEX for URLrewriting if NOT ".php" in the path

Hello folks, my boss wants me to code an URLrewriting for, let's say "http://our.domain.com/SomeText" -- that is, if the URL does NOT contain ".php" or ".html", it should be processed by a script like "http://our.domain.com/process.php?string=SomeText". Is this possible with a simple regex? I just cannot find the right expression to do ...

PHP, URL rewriting with htaccess, and Microsoft IIS Url Rewriting

I am used to working with Apache servers, so when mod_rewrite is enabled, I can create an htaccess file and use URL rewriting. Here's my htaccess file: RewriteEngine On RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [NC,L] RewriteRule ^.*$ index.php ...

When using back button AJAX results have been lost.

So I've set up a pagination system similar to Twitter's where where 20 results are shown and the user can click a link to show the next twenty or all results. The number of results shown can be controlled by a parameter at the end of the URL however, this isn't updated with AJAX so if the user clicks on one of the results and then choose...

Navigation URL Rules for Intelligencia.UrlRewriter.dll

I m using Intelligencia.UrlRewriter.dll for URL ReWritting I wrote below line of code in web config. <rewrite url="~/Reservation/" to="~/Division.aspx?DIV=5&amp /> <rewrite url="~/Tours/ " to="~/Division.aspx?DIV=10/> Here my navigation steps are : 1.From Default.aspx i will click on URL Reservations In Default,aspx Reservation...

IIS redirect rules for static content domains

Hi there, I've written some rules for our static content subdomains so that, when they come into IIS, they are redirected to our www. subdomain. The reason for this is that we have several subdomains being indexed by Google. However, when I create the urls, I am still able to view files at img1.mydomain.com with the statuscode being 20...

How to redirect a request to a non existant PHP file to a existing DIR in a clean way ?

On of my client asked me to create an Web App in PHP, I ended up using Symfony. At delivery, he told me that he has distributed a software with an embedded Web view pointing to a hardcoded url : www.domain.com/dir/tools.php Now he wants the Web app to appear in it's Web View, but the software isused by about 400 customers, we can't exp...

Where do you think is best to put URL rewriting ?

I am a total noob on this issue, and I wonder if I have to do that where I put the code : In the virtual host / apache conf file ? In a httaccess file ? Redirect all URLs to a single entry point and parse it with a scripting language ? What are the pro and cons ? ...