It sounds like you might want the [R=301] modifier, which means "redirect with a 301 HTTP code", which subsequently means "permanently moved" ... like so:
RewriteRule ^foo_old_file\.(php|html)$ http://www.myurl.com/foo_new_file.html [nc,R=301]
RewriteRule ^/?(.*)\.html$ $1.php
Also note...
Hypothetical situation: I've got a PHP script:
/dostuff.php
It takes a parameter "thing":
/dostuff.php?thing=monster
But I'm using mod_rewrite to make it look better, so the URL I want users to see (and use) is:
/dostuff/monster
For this purpose I've created a simple rewrite rule...
VS2005 doesn't like that. As far as I can tell, BITMAP resources can only be BMP files in proper bitmap format. However, BMP files can be RLE-compressed, which is not as efficient as GIF or JPG, but it helps a good bit. I tried that on my app and successfully trimmed off some excess size...
That's close, but I believe it would cause the build process to re-link all binaries even if they had no other changes (and thus didn't really need to be re-linked). I worry about this situation for two reasons:
1. I have a bunch of binaries (EXEs) that will be created when I do a batch...
I'd like to include the build date of my app in its About box. Unfortunately the About box class is only compiled whenever it is changed, thus the value of __DATE__ that it uses is frozen even as I make changes elsewhere in the app. When the final app is compiled and linked, the About box's OBJ...
The program I'm maintaining has a large collection of BMP-format resources. As such, the binary is rather large. VS2005 allows me to load GIFs and JPEGs when importing resources, but then it wants to call them custom resources.
Is it possible to use a more efficient file format (than...
I'm new to VC++ but used to languages/architectures like C#, Flex, VB, etc. In most of those languages, tab controls are handled like containers, where the OS and/or runtime handle creating the tabs, switching between them, etc. It looks to me like VC++ (with MFC) does things at a lower level...
That was not exactly what I needed, but it got me on the right track. The problem was indeed that the form had started but that the parent thread (started by the event) was ending as soon as the form was displayed. Thus, there was no thread available to handle messages for that form.
The...
I wouldn't recommend running the telnet client to do this - that'd be a bit convoluted. You should use sockets to connect to the telnet server (on port 23 usually) and communicate with it that way. Parsing the server's telnet responses won't be easy, but you could save the data to a file and...
You should create a custom event in the class so that the form may register a handler for it. Then, the form can do the status update whenever the child class fires that event. This is ideal since it keeps form-based actions (updating the status bar) within the code of the form itself.
In the...
My personal favorite way to do this is to create a form field in the PDF and fill it using FDF data. An FDF has a set of field names (from the PDF) and text to put into each field. You can create an FDF file using forge_fdf, then merge the PDF with its FDF data using Pdftk. Pdftk can also...
I have a problem with an event handler that opens a form. The form appears, but it freezes immediately. This doesn't happen for all events, such as those that my other forms create (like menu items or button clicks), but it does happen for the system-based events like FileSystemWatcher and...
I am trying to build a filesystem filter using CE's FSDSPY as a starting point, but at the moment I cannot get it working. I feel that I'm very close:
I have compiled the dll with VS2005, set up the registry to load the filter, and filesys.exe loads the DLL after a soft reset (in the Pocket PC...
I'm looking for an automated profiler for PHP that will give me a GDB-like summary of all function calls and delays caused by those calls. I've seen things like this output from DBG, but I wasn't able to get it running, and there seems to be a horribly scarce amount of "getting started"...
Is it really possible to cause the Acrobat client to automatically print a document upon loading? That sounds like it could be pretty annoying!
To the original poster: there are some useful comments in the "printer functions" section of the PHP manual, even though that particular set of...
I have a schema, shown below, for the XML file that is parsed by a form-generating PHP script. It takes the XML file, which has items like this:
<field type="text" size="30" />
<field type="textarea" rows="5" cols="40" />
<field type="select" size="20">
<option>red</option>...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.