rewrite

Continue a Classic ASP site or insist a language change?

So today I was in a meeting to assist putting together a proposal to give one of our clients on how we can improve their web site. After two hours we had a pretty hefty list of new features and resource upgrades that coupled with their latest request for a site redesign, would put us in a good position to suggest a 'rewrite' in another l...

Seemingly random crashes with VB.NET and COM Interop

I'm thinking of rewriting a brand new VB.NET application in VB 6. The application runs under terminal services and makes heavy use of COM. For some reason, there is random weirdness with the application - Random Access Violation errors (WinDbg exception analysis points into dll's like comdlg32.dll, mscorwks) Random Buffer Overflow er...

.htaccess with or without slash

What do I need to do to the following rewrite rule to make it so it works whether or not their is a slash at the end of the URL? ie. http://mydomain.com/content/featured or http://mydomain.com/content/featured/ RewriteRule ^content/featured/ /content/today.html ...

Is it possible to change the HostName for a request in ASP.Net on IIS6/7?

Hi, Is it possible to change the HostName for a request in ASP.Net? We need this for rewriting all requests to abc.xyz.com to abc.xyz.com/sites/abc (we are running Sharepoint). I understand this is possible with ISAPI. We are running IIS7. Kind regards, ...

Why is my .htaccess www. force causing external forms to fail without www.?

Hello there, Because of strange cross domain AJAX problems, causing AJAX requests to fail when not using www.(the PHP handler communicating with the request is given in a relative path, so it can't be an address issue or something - that's what this question is about though), I have forced www. using .htaccess : #enable rewrite engine ...

IIS7 + PHP + Zend - Not executing <= *pic*

I have PHP, IIS7, ReWrite Module for IIS and Zend all installed. I can execute PHP pages just fine, even got PHPINFO showing up. I setup a Zend quickstart app on IIS and when I open it this is what I see: You can see from the source that it's not executing the <= portions. Any idea what needs to change? ...

Using nginx rewrite to hide or clean URLs?

Greetings. I've been trying to grok regexes and rewrites but i'm a newbie at it. I have a simple site, one dir only, all i want is to rewrite domain.com/file.php?var=value to domain.com, making sure the user will only see domain.com in the adress bar throughout site navigation (even if i start making the site more complex). Simply spea...

Is there a free/demo version of COBOL with multi-user support?

I have been using COBOL 85 for a long time, including work with merging COBOL and Z80 assembly. However traditional COBOL doesn't support multi-user/shareable (ie can run concurrently from various terminals) concepts. Can anyone recommend a newer version of COBOL that will let me rewrite my existing code with minimal effort? Is there ...

How to redirect subfolder to query in Mod Rewrite for IIS 7.0?

I'm using Mod Rewrite for IIS 7.0 from iis.net and want to redirect requests: http://example.com/users/foo to http://example.com/User.aspx?name=foo http://example.com/users/1 to http://example.com/User.aspx?id=1 I have created 2 rules: <rule name="ID"> <match url="/users/([0-9])" /> <action type="Rewrite" url="/User.aspx?id={R...

Add slash to the end of every url (need rewrite rule for nginx)

I try to get an "/" to every urls end: example.com/art should example.com/art/ I use nginx as webserver. I need the rewrite rule for this.. For better understanding check this: http://3much.schnickschnack.info/art/projekte If u press on a small thumbnail under the big picture it reloads and shows this url: http://3much.schnicks...

Access content to be written to browser in ASP.NET

I am looking to access the content of a web page that is going to be written to the browser. I have played around and tested using Form Adapters and that works great for any content between <form> and </form> but the content that falls outside of it is not in the context that is passed to the Form adapter. Is there a way (via an HTTP M...

What should I rewrite my website in next?

Every year or two, I wind up rewriting my website using a new technology or upgrade to take advantage of new developer and user experience features as well as learn some new tricks. Right now, my site is in ASP.Net and I am trying to figure out where to go from here: Silverlight? ASP.Net MVP? Another language? The site's functionali...

ReWriteRule Apache, php

Hello, I want to be able to redirect the user when they type in http://example.com/user/user-name to http://example.com/user/user-name, which displays user details This is what I am using but it gives me errors Options +FollowSymLinks RewriteEngine On RewriteRule ^.*$ /user/ [R] The error which firefox gives is Redirect Loop ...

Is it possible to do a better programming job the second time around?

I hate the way this sounds but Joel says "It's important to remember that when you start from scratch there is absolutely no reason to believe that you are going to do a better job than you did the first time." I want to not believe this. Am I really doomed? Have you done a better job the second time around? Have you failed to do bet...

Redirect files to simple form before downloading

Hi I am trying to redirect all links to any pdf file in my site to a page with a form in it that collects user info before they can proceed to download/view the pdf. Eg I want to redirect *.pdf files in web site to request.php?file=name_of_pdf_being_redirected Where request.php is the page with the form on it asking for a few details ...

ISAPI Rewrite with instead of mod_rewrite

I'm installing Modx on windows with ISAPI Rewrite instead of apache with mod_rewrite? How do you define the rewrite rules? I'm guessing not with an .htccess file? any Ideas? Thanks ...

.htaccess rewrite without www AND redirect to subdirectory

I'd like to redirect www.example.com/* to example.com/* And at the same time redirect example.com/* to example.com/forum/* But I also have /wiki/ and /blog/ and /style/, so I don't want to redirect example.com/style/* to example.com/forum/style/* This is what I have at the moment, which is not working quite correctly: Opti...

Apache rewrite certain urls to separate part of codebase

Hi, Basically I have 2 separate code bases, v1 and v2 for the sake of this example. I want to redirect a certain area of the v1 site to v2 so we can periodically port the old code to new code. Now, I have done this exact sort of code porting before, I just can't remember the exact specifics and whether we did some apache voodoo to get...

Apache rewrite rules redux

I've got a REST framework that when plopped into any directory should Just Work(TM), and it seems to work fine when I've got projects in subdirectories, but not if it's in root. So, given a few example directories; / /project1 /bingo/project2 /hoopla/doopla/minor/project3 All of these works fine, except I'm getting "funnies"* when the...

mod_rewrite help to pass full path with query string

I'm doing some caching based on the whole url, including query string, and need Apache to recognize the file and use it. It seems to find a match but then strips the query string off before rendering the file. url: www.somesite.com/default.asp?foo=bar Cached page filename on the filesystem in the cache folder: default.asp?foo=bar My c...