url-routing

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? ...

Creating a list of URL's

Hi, I have a app with a list of urls, I can create a class that will link to the urls and open the link within the browser, trouble is I have more than 100 urls and I dont think it would be practical to create a class for each of those urls. So I want to create a class that will get the correct url based on the users selection from a l...

Help with asp.net MVC routing and areas

I have the following controller, inside an area called "Service": namespace Web.Areas.Service.Controllers { public class IntervalController : Controller { // // GET: /Service/Interval/ public JsonResult Monitor(String accountId, int datekey) { //... } } } The URL http:...

Username based URLs

http://twitter.com/codinghorror http://twitter.com/login These both look like twitter accounts but the second one is not. It's a system page. How does twitter in this case know that logout is not a username and how can it make sure that no user registers under a system page name that exist or that may come into existance in future? ...

ASP.NET MVC 2 routing problems with string

I want to add a simple route to my webapp, but it just doesn't work and i don't know why code in global.asax.cs: routes.MapRoute( "BrowseGenre", "{controller}/{action}/{genre}", new {controller = "Store", action = "Browse", genre = UrlParameter.Optional} ); code in StoreController.cs: ...

When I add FormsAuthentication to ASP.NET MVC2 site in IIS7.5 I get HTTP 403.14 error

I have written a custom forms authentication module and when I add it to the web.config of my MVC2 application and run under IIS7.5 I get the HTTP 403.14 error. If I try to navigate to any of the routed Urls then I simply get a 404 error. The annoying thing is that I did all the testing using Cassini with no problems at all. I have appli...

Case insensitive url-routing for Zend

I am working with legacy code written in PHP 5.2.6 with Zend Framework 1.5.3 on CentOS 5.5 There is code as such url:"./sales/getAlerts/?bypass=1" The view is named getalerts.phtml Controller function is named getAlertsAction Code works fine on existing server, but when I try moving it to a new server the code fails stating that .....

Apache URL Rewrite Question about File Which doesn't Exists

I have folder which path is .com/yp/uploads and i have another folder .com/uploads I want to do htaccess rule like this: If .com/yp/uploads/abc.jpg(or another file extension) doesn't exists then show .com/uploads/abc.jpg Thank you. ...

Mod rewrite problem: rewrite url with drupal

Hi, Im am working on a drupal website with acqui solar search. I have to use this url /search/apachesolr_search/, but I want to change it to 'search' instead. If u create an alias, my search doesn't work anymore... Can someone help met to write a function for the 'Mod rewrite' module or give another option? Thanks in advance ...

What is a good way to have a SEO URL system built up in PHP?

I want to have "pretty" and SEO oriented URLs in my site. I've build up my own tiny framework for this site and almost everything is complete now. One thing I'm still puzzled up is the pretty/SEO URLs system that I will use. I know there's many way to achieve this and I'm looking to balance best practices/ease of implementation on this...

Pylons - url.current() incorrect, for '/test' shows '/test/test'?

I've got a pylons setup, using flup with nginx, and url.current() always returns totally wrong. I have a route: map.connect('testpage', '/test', controller='Main', action='test') And in that controller, I do url.current() and I get /test/test' instead of '/test'. I've tried changingSCRIPT_NAME` as various posts about using uwsgi sug...

jQuery Twitter/Facebook like page navigation

I have really liked how the new Twitter and Facebook have saved page loads by instead loading the content dynamically through ajax. I want to start rolling this out to my sites, but I have no idea where to even start. Twitter and Facebook now have uri's like this: http://twitter.com/#!/messages $(document).ready(function () { // Check...

url routing in zend framework

Hi I created several module for my own CMS like category, article, core , ... now how can I access these modules with url like: http://localhost/mycms/admin/category http://localhost/mycms/admin/article , ... note: the admin is not module, it's only prefix ...

ASP.NET MVC and Web Farm Framework for IIS 7 Problem

I am trying to set up small web farm using "Microsoft Web Farm Framework 2.0 Beta for IIS 7" Everything works fine, except for one problem - My web application is written using ASP.NET MVC 2 and there is no references to ".aspx" files used. A typical url looks like: http://192.168.2.35/Billing/Account/Create Howver when this url ...

How NOT to pass a parameter by URL ?

Hello everybody, First sorry for my bad english, i'm french. I'll try to make me understand :) I'd like to pass a parameter from view to controller without using the url. Why? Because the parameter is a userid and I don't want somebody change it manually in the url. My code in view : <% foreach (var item in ViewData["ClientsLis...

How to make Apache Web Server enforce strict URL addressing

I want to make apache enforce strict URL addressing rules, example, i have a file on my server called blog.html, when i type in the address example.com/blog , it automatically goes to the blog.html file.....is there anyway to stop this? I am running a LAMP stack on Ubuntu Server 10.04. ...

Implementing URL slug functionality in a website

I would like to know how to implement a URL slug functionality in a website, without having the ID of the record currently being viewed show up in the URL. For example, StackOverflow URLs look like this: http://stackoverflow.com/questions/3099232/mvc-dynamic-views-from-url-slug. Notice the URL contains the ID of the record. If I were to...

Trouble Figuring Out The routes.Maproute For This URL (C#)

Please vote to close - this is a double post on my part of http://stackoverflow.com/questions/3877517/trouble-figuring-out-the-routes-maproute-for-this-url-c ...

Trouble Figuring Out The routes.Maproute For This URL (C#)

Despite the plethora of URL routing posts, I have yet to reach enlightenment on the subject. I have an MVC app that works fine, but I want to get fancy and do some URL rewriting to make it easier on my users. The default route is a slight variation on the usual: routes.MapRoute( "Default", "{controller}/{action}/{query}"...

Is it possible to preprocess the URL before mapping routes?

We're migrating a site from a proprietary framework to Ruby on Rails (v2.3). The current framework sometimes puts /base/ at the start of the URL for no discernible reason, and I'd like the existing URL to work, even though we won't give it out any more. My current solution, which I don't like, is to define the routes once on the main m...