url-rewriting

Should I set rewrite rules on an ASP.Net MVC site with heliontech IISRewriter Globally or by folder with wordpress?

I'm using IIS6 (unfortunatly) and have built an ASP.Net MVC app; IIS is set up for wildcards to make the routing work but I have two virtual directories that contain wordpress installations which works fine. I have two .htaccess files (one in each wp install) that handles their rewriting fine, but I want to setup a rewrite from /about t...

Response.Flush - OnFlush event in classic ASP?

Hi, I need to rewrite the domain names on web pages served by a DLL that I have no way to change. I thought if there were events like OnFlush before Response.Flush occurs on the page I could do it all before the page is displayed. Is there a way to do this in ASP? Thanks for your help. P.S.: Something like Script_OnFlush in this APACH...

redirect problem "No input file specified"

Hello! I'm working on a url shortner script. It's located at http://mini.ample.se/ and the short URL will look something like http://mini.ample.se/%5Babc..%5D my .httaccess file looks like this <IfModule mod_rewrite.c> RewriteEngine on RewriteOptions MaxRedirects=1 RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f Rewr...

url_rewrite /#/something/here to /something/here

I need to configure my Apache instance to redirect the requests from a pattern like /#/something/here to /something/here I tried with RewriteRule /([\#])/something/here /(.)/something/here with no success. Any thoughts? ...

Adequate replacement for / in URLs

Quick one. I'm using mod rewrite and have most replacements in place: empty space = _ æ = ae Æ = ae and so on. What would be the natural replacement character for /? Thanks ...

URL Rewriting, Temporary Solution, ASP.Net 3.5

We've got a test site hosted only by IP address. We really need to test some functionality that depends on what subdomain someone is using to get to the site. But of course we can't even USE subdomains with an IP only site. So, one thought I had was that instead of subdomains, we could have the testers open the site with a URL like th...

URL rewriting in asp.net for content management system

URL rewriting in asp.net for content management system ...

mod_rewrite to redirect /index.whatever to / isn't working

I want to redirect all requests for index.html|php|php5 to http://www.domain.co.uk/ using mod_rewrite and I've copied the code from a book on search engine optimization with PHP verbatim, then added in the php5 option, but it isn't working. This is my complete .htaccess file: RewriteEngine On #translate any .html ending into .php5 Rewr...

Using .htaccess and mod_rewrite in a directory (not root)

I have a site that sits in a directory on a domain: http://www.example.com/site/ I also have an .htaccess file in /site/ which has several rewrite rules. These rules work if all the files (including the .htaccess file) sit on the top-level of the domain: e.g., at www.example.com. My .htaccess file looks something like this: Rewrite...

Regex rewrite rule not working in .htaccess

I have an .htaccess file that's using several rewrite rules. They don't seem to be working on a server I'm testing on, but they work on another server. I tested using a rule that doesn't use a regex, and that seems to work. Is there any way that regex rules can be disabled (or enabled) in Apache? ...

Good .htaccess/mod_rewrite/url-rewriting tutorial

Can you recommend me a very detailed URL rewriting/mod_rewrite tutorial that explains the whole process to the end, not just the basics? I have found numerous URL rewriting tutorials out there, each of them basic level. I understand why we use it, how we use it, what are regular expressions etc. What I am interested in is a very detail...

Urlrewriting.net pages are not causing postbacks

I'm using webforms with UrlRewriting.Net to rewrite pages, e.g. http://www.example.com/stuff.aspx?c=30 becomes http://www.example.com/stuff/30-this-stuff.aspx. It works in so far as the correct content is loading; however, none of the postbacks are working (mostly buttons on the page). If I set up a breakpoint on Page_Load, I...

Point Virtural Directory in IIS7 at a different URL/Domain

When I used to use IIS 6 (or so) I'd often make a virtual directory on my local dev machine that pointed to the production assets/content directory(s). That way I could see all the most up to date content off production, without having to FTP it down from the production server. Now I'm trying to do it in IIS 7 and can't see it. Does an...

Seam 2.2.0 URL rewrite not working

I'm trying a simple example of URL rewriting, but it's not working for me. I'm using Seam 2.2.0 deployed to JBoss 5.1.0. My pages.xml contains: <page view-id="/html/index.xhtml"> <rewrite pattern="/home" /> </page> and <page view-id="/html/common/redirect.xhtml" action="#{redirectAction.redirect}"> <rewrite pattern="/link"...

Changing URL through html select

What is the best way to change your URL through an html select? <select> <option selected="selected">Change to URL X</option> <option>Change to URL Y</option> </select> What Javascript should be used? ...

How to remove "index.php" in codeigniter's path

How do I remove the "index.php" sticking out in every path in codeigniter somewhere in the center? I want clean non index.php-fied URLs? ...

mod_rewrite problem with lighthttp

I am using mod_rewrite with lighttpd, and I am having an issue... Here is my rule: url.rewrite-once = (".*\.(js|ico|gif|jpg|png|css)$" => "$0", "" => "/index.php") The apache rule works on apache, and looks like this: RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule !\.(js|ico|g...

Lighttpd url rewrite removes querystring variables

I am rewriting a URL in Lighttpd using url.rewrite-once = ( "^/(.*)\.(.+)$" => "$0", "^/(.+/?)\??$" => "/index.php?q=$1" ) So that all urls are passed to index.php as variable q. However when I visit http://mydomain.com/account/edit?user=5 my script at index.php gets q=account/edit?user=5 on apache I would get all variables i.e. ...

URL Rewrite not working in IIS7

Hi, I have recently moved my ASP.Net website to a new hosting provider. I am having a problem, however - the rewrite rules for the blog no longer work. I see that the developer has added the following to web.config: http://pastebin.com/m4f2f2dea The new server is running IIS7 with the URL Rewrite module installed. Is there anything el...

Is this mod_rewrite rule correct?

Are these url rewrite rules and conditions correct? RewriteEngine On RewriteCond %{HTTP_HOST} ^example\.com$ [NC] RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L] Basically, URL needs to be rewritten from non-www to www. Thanks ...