url-rewriting

Simple Redirect using Rewrite Module

Hi all, I want add a rewrite rule to IIS 7 rewrite. I want to redirect a user from page http://localhost/myapp/register.html to http://localhost/myapp/register/register.html And similar for other pages. Any help? Can I do the same using a rewrite action? Using IIS7 and Windows Server 2008. Thanks. ...

URL rewriting from root to parent directory

Hi, I need to write a rule to redirect a page to a parent directory in a .htacces file. For instance, this is my files system : - a-directory - another-directory -- a-file i've got a virtualhost which is a pointer to "a-directory" so when i go to http//my-virtualhost/a-file, i need to go back to the parent directory and open "a-fil...

nginx rewrite rules for Joomla!

I've got nginx installed on Ubuntu from the repository (v0.7.65), and while with my default site configuration works wonders with WordPress pretty URLs and nginx-compatibility plugin (so far), it doesn't with Joomla!. I got it to show me the index, the administrator, and one level below links. That is, if I access http://localhost/jooml...

nice url with apache and php

I have urls like /story.php?id=31 I want to show it as /31.html How? ...

URL Re-Write Rule Not Working

Hello, I am trying to rewrite URLs ending like (not only exactly equal to) this: comments/The-Latest-Out-of-Pakistan/68 into URLs ending in this: comments/index.php?submissionid=68 Below is what I have in the .htaccess file, but it's not working. RewriteEngine On RewriteRule ^comments/([A-Za-z0-9-]+)/([0-9]+)?$ comments/in...

ASP.NET WebForms -- Processing special query-string parameters across all pages on a site -- URL Rewriting, URL Routing, or other approaches?

Working on an ecommerce site which will be integrated with a 3rd party vendor--that vendor uses different identifiers for stores than we use internally (i.e. their store ABC123 is our 001-321). I'm researching the best approach to inspect incoming requests for reserved query-string parameters that indicate the request is using their ide...

Domain name slash user name redirect to PHP page

Hi, I would like to find a way for users to be able to type their username after my domain name to access their public profile page. For example, if you type youtube.com/username it shows that user's channel page. The resulting page is the same as youtube.com/user/username. So with my website, I have mydomain.example/users/profile.php?na...

username urls like twitter and facebook

how does twitter and facebook etc. make unique url eg. twitter.com/billgates if i would like to do the same (give my users unique urls with username), is it a application or do you crate a directory for each user with a index page?? by the way im using coldfusion. thanks ...

Simple URL Re-Write Rule Not Working

Hello, I am trying to re-write this: http://www.domain.com/sample/comments/68 Into this: http://www.domain.com/sample/comments/index.php?submissionid=68 Here is what the .htaccess file looks like in both the directory represented by "sample" above and the directory "comments": RewriteEngine on RewriteRule ^comments/([0-9]+)?$ ind...

How do I make the browser display the clean URL on a re-write?

Hello, I have a hyperlink that looks like this: http://domain.com/sample/comments/65 And when I click on it, it goes to this: http://domain.com/sample/comments/index.php?submissionid=65 I'm using a rewrite rule to make it do this. This is what I want, except I also want the URL displayed in the browser to still look like "http://...

URL Rewriting in C#

I noticed similar questions to what I have to ask but I feel I haven't really had my question answered. I created an admin panel for a client. He has the ability to create Destinations (i.e. Rome, Barcelona, Cancun) All the information for each destination is dynamic and currently looks like this: /Destination.aspx?id=1 I would like ...

Processing URL parameters - name value pairs separated by slashes

I want to have URLs like :- URL 1 - www.projectname/module/search/param/1 URL 2 - www.projectname/param/1/module/search I want a PHP code which takes the above URLs as parameter and returns an array like Array("module" => "search", "param" => 1) (for URL 1) Array("param" => 1, "module" => "search") (for URL 2) So that I can u...

Simulate file structure with PHP

I'm running PHP on a shared Apache web server. I can edit the .htaccess file. I'm trying to simulate a file file structure that is not actually there. For example, I would like for the URL: www.Stackoverflow.com/jimwiggly to actually display www.StackOverflow.com/index.php?name=jimwiggly I got halfway there by editing my .htaccess fi...

What is the easiest way to give nice URLs to my ASP.NET WebForms application?

I have a big, fat, legacy ASP.NET WebForms application with big, fat, legacy URLs: /ViewDocument.aspx?documentId=72143&noRedirect=1&someOtherCrapThatJustSeemsToGoOnForever=AndEver What is the simplest way to implement pretty URLs in WebForms using ASP.NET 3.5? Is there anything in ASP.NET 4 that will make this easier? Should I impleme...

jboss valve encoding problem while url rewriting

Hi all, I have an app., coded with ejb3, jsf and maven, which runs on jboss 4.2.2GA The problem I have been facing for 2 days is I cannot convert non-english characters that are added to url on runtime. For instance, there is a search textbox and a button. When a user enters a word including non-english characters, and pushes the butto...

How do I get my php websites using .htaccess files to do basic URL re-writing to work on new windows server?

I have just bought a new Windows server with IIS on it and plesk panel. Good times (I thought...) I have about 10 client sites that run on PHP which shouldn't be a problem. But I can't seem to get an answer from my hosting provider on how to get my .htaccess working on the windows server so I'm getting stung for two lots of hosting and ...

IIS7: URL Rewrite not working when debugging with Visual Studio

Hi, I have set up some User Friendly URL rules in IIS7 using the URL Rewrite module. This works perfectly on IIS7. However, when I try to debug the site, the webserver instance that Visual Studio creates doesn't seem to obey the rewrite rules. For example, http://localhost/friendly-url works on IIS7, but http://localhost:1800/fri...

How to pass query parameters to the EntityQuery interface

The following link passes query parameters as f:param and they get substituted in Users.page.xml, and these parameters appear as query parameters in the browse URL which we would like to not show to the end user. Is there an alternate mechanism to pass parameters to the entity query bean <rich:menuItem> <s:link value="Users" view="/...

How can I direct a url to a subdomain?

I have a rails app that I host for multiple users as useraccount.mysite.com. I want to have the option to allow my users to have their own url (useraccount.com) but still host the app using my shared server. So they should be able to access useraccount.mysite.com or useraccount.com and it should return the same stuff. If they goto use...

Need to manipulate the content-type of a return without access to the code

An off the shelf application is setting a 302 back to the browser with an invalid MIME type. Our reverse proxy is dumping the return due to the invalid MIME type. The backend is IIS 6.0 and I have been looking at URL rewriters But they only appear to match the incoming stream not the outgoing stream. I note that IIS7 has the ability o...