<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel>
	  <title>Ask MetaFilter questions tagged with rewrite</title>
      <link>http://ask.metafilter.com/tags/rewrite</link>
      <description>Questions tagged with 'rewrite' at Ask MetaFilter.</description>
	  <pubDate>Thu, 21 May 2009 17:09:12 -0800</pubDate> <lastBuildDate>Thu, 21 May 2009 17:09:12 -0800</lastBuildDate>

      <language>en-us</language>
	  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
	  <ttl>60</ttl>	  
	<item>
	<title>How can I rewrite the image paths on my web server?</title>
	<link>http://ask.metafilter.com/122748/How%2Dcan%2DI%2Drewrite%2Dthe%2Dimage%2Dpaths%2Don%2Dmy%2Dweb%2Dserver</link>	
	<description>How can I rewrite the image paths on my web server? I recently moved a site into a CMS and different web server. The images are in directories like this:&lt;br&gt;
/daily/2009/05/&lt;br&gt;
&lt;br&gt;
The web pages sometimes link to images like this:&lt;br&gt;
[img src=&quot;/daily/2009/05/&quot;]&lt;br&gt;
And sometimes they link to images like this (without a leading slash):&lt;br&gt;
[img src=&quot;daily/2009/05/&quot;]&lt;br&gt;
&lt;br&gt;
That worked fine on the old server, but the paths are different in the CMS on the new server. Can I use .htaccess or something to rewrite the paths?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.122748</guid>
	<pubDate>Thu, 21 May 2009 17:09:12 -0800</pubDate>
	<category>htaccess</category>
	<category>image</category>
	<category>paths</category>
	<category>rewrite</category>
	<category>server</category>
	<category>web</category>
	<dc:creator>kirkaracha</dc:creator>
	</item>
	<item>
	<title>How do I redirect subfolder URLs to subdomain URLs?</title>
	<link>http://ask.metafilter.com/117076/How%2Ddo%2DI%2Dredirect%2Dsubfolder%2DURLs%2Dto%2Dsubdomain%2DURLs</link>	
	<description>Apologies for asking a question that I know will be answered already on the web, somewhere, but I can&apos;t find it. I&apos;m having trouble writing a .htaccess ReWrite rule that will forward requests for all folders within a specific sub-folder to the same folders at a subdomain - so http://www.mydomain.com/hello/foo/bar/ will forward to http://hello.mydomain.com/foo/bar/

Any advice very gratefully received.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.117076</guid>
	<pubDate>Wed, 18 Mar 2009 11:37:58 -0800</pubDate>
	<category>htaccess</category>
	<category>redirect</category>
	<category>rewrite</category>
	<dc:creator>Cobbler</dc:creator>
	</item>
	<item>
	<title>URL rewrite in IIS7: make foo.com/bah/ redirect to example.com/foo/bah/</title>
	<link>http://ask.metafilter.com/113872/URL%2Drewrite%2Din%2DIIS7%2Dmake%2Dfoocombah%2Dredirect%2Dto%2Dexamplecomfoobah</link>	
	<description>Help me with a URL rewrite in IIS7 I want to implement a rewrite in IIS that would allow the following without having to create a new rule for each one.&lt;br&gt;
&lt;br&gt;
www.foo.com/books/ redirects to www.example.com/foo/books/&lt;br&gt;
www.foo.com/films/ redirects to www.example.com/foo/films/&lt;br&gt;
www.foo.com/etc/ redirects to  www.example.com/foo/etc/&lt;br&gt;
www.foo.com/etc/etc/ redirects to  www.example.com/foo/etc/etc/&lt;br&gt;
&lt;br&gt;
I am familiar with the steps in &lt;a href=&quot;http://learn.iis.net/page.aspx/460/using-url-rewrite-module/&quot;&gt;using url rewrite module in IIS7&lt;/a&gt; if that makes passing on instructions a bit easier.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.113872</guid>
	<pubDate>Tue, 10 Feb 2009 12:10:29 -0800</pubDate>
	<category>IIS</category>
	<category>IIS7</category>
	<category>module</category>
	<category>redirect</category>
	<category>regexp</category>
	<category>rewrite</category>
	<category>URL</category>
	<dc:creator>furtive</dc:creator>
	</item>
	<item>
	<title>How can I monitor a disc rewrite process in Ubuntu?</title>
	<link>http://ask.metafilter.com/106287/How%2Dcan%2DI%2Dmonitor%2Da%2Ddisc%2Drewrite%2Dprocess%2Din%2DUbuntu</link>	
	<description>I&apos;m using Terminal (Ubuntu 8.04x64) right now to overwrite a 500g external hd with random information. There&apos;s been no action aside from a blinking cursor (by itself on a line, not in front of any prompt) since I entered the command yesterday afternoon:&lt;br&gt;[&lt;code&gt;sudo dd if=/dev/random of=/dev/sdc bs=8m&lt;/code&gt;]&lt;br&gt; &lt;br&gt;
I understand it&apos;s going to take a while to finish. In the meantime, is there any way to monitor the progress of the operation?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.106287</guid>
	<pubDate>Sat, 08 Nov 2008 07:45:38 -0800</pubDate>
	<category>804</category>
	<category>external</category>
	<category>harddisk</category>
	<category>harddrive</category>
	<category>hd</category>
	<category>monitor</category>
	<category>resolved</category>
	<category>rewrite</category>
	<category>terminal</category>
	<category>ubuntu</category>
	<dc:creator>carsonb</dc:creator>
	</item>
	<item>
	<title>to rewrite or not to rewrite?</title>
	<link>http://ask.metafilter.com/100986/to%2Drewrite%2Dor%2Dnot%2Dto%2Drewrite</link>	
	<description>Should I rewrite my novel before submitting it to publishers? Back story:  The current draft was completed over three years ago.  Everybody liked it (not just family and friends) to the extent that a certain not unsuccessful indie-filmmaker demanded I turn it into a screenplay for him (that&#8217;s where the three years went).  The screenplay is now pretty much complete and off to market.  The problem is that, based on the adaptation process, I can now see a number of obvious shortcomings in the novel.  Foremost among them:  it&#8217;s too long.  I know I could make it twenty-five percent shorter with losing anything of value and have already rewritten the first fifty pages or so in this light. &lt;br&gt;
&lt;br&gt;
My real question then (publishing industry pros please take note).  As a first-time essentially unknown novelist, should I:&lt;br&gt;
&lt;br&gt;
1. submit the existing 2005 draft as is and then &#8220;get paid&#8221; to make the revisions in collaboration with an editor?  &lt;br&gt;
&lt;br&gt;
2. take the time (at least three poverty stricken months, probably six) to make the changes that I know will only improve it?  &lt;br&gt;
&lt;br&gt;
3. (here&#8217;s where it gets tricky and perhaps needlessly complicated) submit the rewritten fifty plus pages as a hook and then evolve the relationship from there?&lt;br&gt;
&lt;br&gt;
Final note:  if #3 strikes you as my best option, any hints as to how I might word this in the queries I will be sending out?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.100986</guid>
	<pubDate>Fri, 05 Sep 2008 11:40:15 -0800</pubDate>
	<category>novel</category>
	<category>publishing</category>
	<category>rewrite</category>
	<category>screenplay</category>
	<dc:creator>philip-random</dc:creator>
	</item>
	<item>
	<title>Apache: Subdomain Management</title>
	<link>http://ask.metafilter.com/81820/Apache%2DSubdomain%2DManagement</link>	
	<description>Quick Apachefilter Question:

I have complete control over my setup. What is the best way to setup Apache to serve files from /home/domain.com/subdomains/of/level/arbitrary/an/ when an.arbitrary.level.of.subdomains.domain.com is requested? I cannot figure this simple one out for the life of me! I&apos;m using Apache 2 and have control over BIND, but I&apos;ve already setup wildcard domains. Thankyou!</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.81820</guid>
	<pubDate>Thu, 24 Jan 2008 01:31:08 -0800</pubDate>
	<category>apache</category>
	<category>nightmare</category>
	<category>rewrite</category>
	<category>subdomains</category>
	<dc:creator>PuGZ</dc:creator>
	</item>
	<item>
	<title>Read-Only USB drive, WTF?</title>
	<link>http://ask.metafilter.com/70625/ReadOnly%2DUSB%2Ddrive%2DWTF</link>	
	<description>Can I do anything with this read-only USB flash drive, or should I just write it off as a lost cause? I received a USB flash drive from a sponsor of an event I attended, which I thought was fantastic because I could use the storage space.  However, the drive is &quot;read-only&quot;.  I have a Windows desktop running XP and a MacBook Pro.   This is the info my disk utility gave me on the device (with the serial number removed):&lt;br&gt;
Name : 	USB Flash Disk Media&lt;br&gt;
	Type : 	Disk&lt;br&gt;
	Disk Identifier : 	disk1&lt;br&gt;
	Media Name : 	USB Flash Disk Media&lt;br&gt;
	Media Type : 	Generic&lt;br&gt;
	Connection Bus : 	USB&lt;br&gt;
	Connection Type : 	External&lt;br&gt;
	USB Serial Number : 	xxxxxxxxxxxxxxxxxxx&lt;br&gt;
	Partition Type : 	FDisk_partition_scheme&lt;br&gt;
	Locked : 	Yes&lt;br&gt;
	Writable : 	No&lt;br&gt;
	Ejectable : 	Yes&lt;br&gt;
	Mac OS 9 Drivers Installed : 	No&lt;br&gt;
	Location : 	External&lt;br&gt;
	Total Capacity : 	126.9 MB (133,038,080 Bytes)&lt;br&gt;
	S.M.A.R.T. Status : 	Not Supported&lt;br&gt;
	Disk Number : 	1&lt;br&gt;
	Partition Number : 	0&lt;br&gt;
&lt;br&gt;
I don&apos;t have any use for the promo stuff on the USB flash drive.  So, should I just chuck it, or is there a way to edit the permission from &quot;read-only&quot;?  I can&apos;t erase it as is.  Would it be illegal for me to alter this, anyway? Consider my level of tech savvy to be that of &quot;novice.&quot;  Thanks!</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2007:site.70625</guid>
	<pubDate>Sun, 02 Sep 2007 10:10:16 -0800</pubDate>
	<category>memory</category>
	<category>permissions</category>
	<category>read-only</category>
	<category>rewrite</category>
	<category>storage</category>
	<category>usbflashdrive</category>
	<dc:creator>misha</dc:creator>
	</item>
	<item>
	<title>Easy redirects</title>
	<link>http://ask.metafilter.com/52261/Easy%2Dredirects</link>	
	<description>Anyone know that website that made redirects easy? A month or two ago, I visited a new Web2.0-ish site that made it easy to create redirects by just putting in your original  URL and the URL you want to redirect to. &lt;br&gt;
&lt;br&gt;
For the life of me, I can&apos;t find it anymore. Any ideas?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2006:site.52261</guid>
	<pubDate>Sat, 02 Dec 2006 19:35:06 -0800</pubDate>
	<category>htaccess</category>
	<category>redirect</category>
	<category>rewrite</category>
	<category>web2.0</category>
	<dc:creator>PandemicSoul</dc:creator>
	</item>
	<item>
	<title>Other sites like Fiction Bitch?</title>
	<link>http://ask.metafilter.com/39544/Other%2Dsites%2Dlike%2DFiction%2DBitch</link>	
	<description>Show me the way to other writing critique web sites, where there are red-lined drafts of writing samples, or even better, rewrites of less-than-stellar writing. &lt;a href=&quot;http://ask.metafilter.com/mefi/39399&quot;&gt;greb&apos;s thread&lt;/a&gt; reminded me of the dearly departed Fiction Bitch, whose site seems to be gone. She was a professional editor who spent time going over short stories submitted by her site visitors. She would comment on them, mark up gaffes, suggest improvements, etc. It was particularly nice because she didn&apos;t just savage the schlock but also pointed out the parts she really liked, even in otherwise awful stories.&lt;br&gt;
&lt;br&gt;
I would love to see other sites like this. There are lots of sites with writing tips but not so many with fleshed out writing samples, particularly ones that weren&apos;t just cooked up to prove a point.&lt;br&gt;
&lt;br&gt;
Bonus points if you can point out ones where full rewrites are demonstrated. Identifying problems is nice, but showing how to do it &quot;right&quot; is even better. And if the rewrites are substantially different, where they offer more than just incremental improvement, you&apos;ll make my day.&lt;br&gt;
&lt;br&gt;
(I love the difference between &quot;Read over your compositions, and wherever you meet with a passage which you think is particularly fine, strike it out.&quot; and &quot;You must kill all your darlings.&quot;)</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2006:site.39544</guid>
	<pubDate>Mon, 05 Jun 2006 09:19:07 -0800</pubDate>
	<category>edit</category>
	<category>editing</category>
	<category>fiction</category>
	<category>fictionbitch</category>
	<category>rewrite</category>
	<category>writing</category>
	<dc:creator>Khalad</dc:creator>
	</item>
	<item>
	<title>YA htaccess Q</title>
	<link>http://ask.metafilter.com/33506/YA%2Dhtaccess%2DQ</link>	
	<description>Another redirect question. My wife has just shifted her weblog from a folder on my server to another server. I want anyone who links to: &lt;br&gt;
&lt;br&gt;
http://mysite.com/wife/path/to/file/file.html&lt;br&gt;
&lt;br&gt;
to be automatically redirected to:&lt;br&gt;
&lt;br&gt;
http://wifesite.com/path/to/file/file.html&lt;br&gt;
&lt;br&gt;
Note there are several different paths to files - and this structure will remain identical (for now) on the new server.&lt;br&gt;
&lt;br&gt;
I&apos;ve looked at the other Mod_rewrite and htaccess tagged posts here, and they seem promising, but I can&apos;t get them to work. This is likely because I am an idiot, I know, but please be charitable!</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2006:site.33506</guid>
	<pubDate>Tue, 28 Feb 2006 14:10:35 -0800</pubDate>
	<category>htaccess</category>
	<category>redirect</category>
	<category>rewrite</category>
	<category>www</category>
	<dc:creator>mikel</dc:creator>
	</item>
	<item>
	<title>htaccess problem.</title>
	<link>http://ask.metafilter.com/4565/htaccess%2Dproblem</link>	
	<description>Will the lines &lt;em&gt;[shown inside]&lt;/em&gt; in the .htaccess file cause ANY url of the form www.example.com/filename to be matched and rewritten to www.example.com/m2.php?pg=filename? The best I could come up with, which don&apos;t work, are:&lt;br&gt;
&lt;br&gt;
RewriteEngine on&lt;br&gt;
RewriteRule ^(.*)$ m2.php?pg=$1 [T=application/x-httpd-php]&lt;br&gt;
RewriteEngine off&lt;br&gt;
&lt;br&gt;
I&apos;m a complete newby at this but am trying to get URLs that match specific keywords. A later evolution will require secondary matching like&lt;br&gt;
&lt;br&gt;
www.example.com/category/subtopic&lt;br&gt;
&lt;br&gt;
to&lt;br&gt;
&lt;br&gt;
www.example.com/m2.php?pg=category&amp;amp;pg2=subtopic</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2004:site.4565</guid>
	<pubDate>Sun, 11 Jan 2004 14:51:53 -0800</pubDate>
	<category>apache</category>
	<category>filter</category>
	<category>htaccess</category>
	<category>rewrite</category>
	<dc:creator>billsaysthis</dc:creator>
	</item>
	
	</channel>
</rss>

