url-rewriting

UrlRewriter.net exception - anyone ever seen this?

This showed up in our error log over the weekend. Has anyone ever seen this? System.ArgumentException: Item has already been added. Key in dictionary: 'RewritingXtoY' Key being added: 'RewritingXtoY' at System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add) at Intelligencia.UrlRewriter.Utilities.MessageProv...

How to force magento to use full product path?

Hi, I have a problem with magento product links. When I search a product and then click the product link, Magento redirects me to index.php/test666.html when it supposed to be index.php/products/grocery/miso-soup/test666.html. is it possible to force Magento use product's full path? Added: I can't get it to work by enabling 'Use Cate...

How to pass the data path for object flash tag from the root directory?

Hello guys, I'm using urlrewriting to rewrite my url. Let me introduce my problem by bellow example: Here is old url: http://localhost/test/pages.aspx?pageid=1 I have 2 cases to rewrite: http://localhost/test/url-rewriting-get-start.aspx http://localhost/test/url-rewriting/get-start.aspx The first case is ok, but I would like to use...

How does the URL Rewrite Module Work

I'm probably going to use the URL rewrite module for IIS 7 eventually and I have a fairly straight forward question that I really can't find the answer to. If you have a base case of: http://yoururl.com/page.aspx?ID=7 You can obviously have it rewritten to: http://yoururl.com/page/7 or whatever you want. My question is this: When u...

Zend Router precendece problem

Hi, I have got two routes ; category route resources.router.routes.category.type = "Zend_Controller_Router_Route" resources.router.routes.category.route = "shopping/:idTwo/:id/*" resources.router.routes.category.defaults.module = "default" resources.router.routes.category.defaults.controller = "shopping" resources.router.routes.category...

How do I access the session in order to do a rewrite?

I'm trying to use the HttpContext.Current.RewritePath method to serve up different versions of an application to different customers. I would love to be able to look at the HttpContext.Current.Session object to know who it is making the request. Oddly when I go to look at this at the BeginRequest handler, the Session always shows null....

Recommended Lists Of Reserved Words For User-Generated URL Components

I am in the process of creating a web app. Since I admire the directness of Twitter's URL scheme for user pages, I'm trying to emulate them. I'd like my users' profile pages to be available at http://myapp.com/user_chosen_identifier. Right now I have some basic code for ensuring RFC3305 compliance with what I put in a URL, but I'm more...

.htaccess php progress.

Thanks to the people that've helped me so far with this, I'm ready for the last step, I think. I've got my URLs looking like this. /brochure.php?cat_path=35&name=concrete-intermediate-posts This is great and finally I just need to know how to turn that URL into this desired URL: /brochure/35/concrete-intermediate-posts Just like t...

Managed Fusion URL Rewriter 500 error when compiled to .NET 4.0

I'm trying to take a .net 2.0 app into the .net 4.0 world. We are leaving the webforms as is and adding new functionality in MVC2. While we could redo all of our managed fusion rewrites as mvc routes, so for the moment, I'd rather just add the new routes to MF and have it handle url rewriting duties for both webforms and controllers. ...

SEO implications with URL rewriting.

We server our content in http://www.domain.com/folder which is bookmarked by user and has to stay that way. Out next iteration will be http://www.domain.com/folder2. We intend to use url rewriting to keep the url http://www.domain.com/folder, but serve the content from http://www.domain.com/folder2. What are the SEO implication, will ...

how does URL rewrite work in plain english

I have read a lot about URL rewriting but I still don't get it. I understand that a URL like http://www.example.com/Blog/Posts.php?Year=2006&Month=12&Day=19 can be replaced with a friendlier one like http://www.example.com/Blog/2006/12/19/ and the server code can remain unchanged because there is some filter which transfo...

How to do URL Rewrites with lighttpd

How would I rewrite (these are not the real domains, but I figure by studying the answer I'll be able to learn how to apply it to my problem), I'm not very strong with regular expressions happy123.info\* jack123.info\* jill123.info\* ...50 more random domains to abc.com\* Could someone give me the solution for the first three re...

godaddy iis7 url re-wright?

hello long time listener first time caller ;) I am having an issues with my godaddy site. i have a second domain pointing to asp.net application in a subdirectory, godaddy will add the subdirectory in to the url randomly so when a user navigates to a url like http://www.subdomain.com/ godaddy some times adds the directory name like http...

Using IIS7 URL Rewrite with MVC without access to webserver

http://learn.iis.net/page.aspx/469/using-rewrite-maps-in-url-rewrite-module/ I have a website hosted at www.hostedsite.com/here, and need to use the subdomain foo.bar.com. The issue im having is when you navigate using any of the links, the url changes to foo.bar.com/here/whatever with 'here' being the folder name coming through. I was ...

Converting mod_rewrite Rules to IIS Rewrite Rules

I'm using http://github.com/lakshmivyas/hyde to generate my website, and it included .htaccess mod_rewrite rules, but I'm going to be self-hosting my website on a Windows server using IIS, so I was trying to import the existing .htaccess rules into the IIS Rewrite module, but the rules it imported weren't working correctly. Examples of ...

magento url rewrite

Hi everone, Can someone tell me how the rewrite cathomepagina?catid=3 to horloges-3.html in magento... cos i keep getting page not find after the 301 redirect ...

dynamic seo title for news articles

Hi, I have a news section where the pages resolve to urls like newsArticle.php?id=210 What I would like to do is use the title from the database to create seo friendly titles like newsArticle/joe-goes-to-town Any ideas how I can achieve this? Thanks, R. ...

How do I convert an Apache rewrite rule to an nginx rewrite rule?

In apache have the following rewrite rule: RewriteCond %{REQUEST_URI} ^/(lar)/(.*)/(\d{6})(\d)(\d)(\d)(\d)(\d)(\d).jpg$ RewriteRule ^/(lar)/(.*)/(\d)(\d)(\d)(\d)(\d)(\d).jpg$ /$4/$5/$6/%7/%8/%9/%6%7%8%9.jpg How do I write the same rewrite rule in Nginx? ...

help with php urls

I have a PHP web site that has two directories: An application directory and a public directory. The problem is that the user has to go to www.domain.com/public to access the site but I need the user who asks for www.domain.com/ to be redirected to www.domain.com/public So my question is what is the best way to do this? ...

ASP.NET MVC2 Custom routing with wildcard or free text url

I have a requirement to add specific functionality to an asp.net mvc2 web site to provide addtional SEO capability, as follows: The incoming URL is plain text, perhaps a containing a sentence as follows "http://somesite.com/welcome-to-our-web-site" or "http://somesite.com/cool things/check-out-this-awesome-video" In the MVC pipeline,...