40 posts tagged with htaccess. (View popular tags)
Displaying 1 through 40. Subscribe: http://ask.metafilter.com/tags/htaccess/rss RSS feed for this tag

Related tags:
+ (8)
+ (7)
+ (7)
+ (4)
+ (4)
+ (4)


Users that often use this tag:
ao4047 (3)
sindark (2)

How on earth do I get pretty URLs to work in BBpress, when in a subdirectory of a Wordpress install? [more inside]
posted on Apr 23, 2008 - 4 answers

Drupal: Copying a site to a test site (subdirectory). The links, they go nowhere! [more inside]
posted on Apr 10, 2008 - 10 answers

I've been helping my friend setup his personal website and we have been muddling through with plenty of help from google and a little bit of luck. But recently, I've been stumped by a persistent problem with a directory containing some files. Here's the scenario - my friend shares his RSS reading list as an OPML file. In addition, he wants to try and show how his reading list has evolved by archiving older versions of his reading list in a folder. He also wants to allow other people to browse this archive folder. It seemed like we should be able to achieve this using .htaccess files, but unfortunately it's not working like we expected. [more inside]
posted on Mar 25, 2008 - 4 answers

Mod_rewrite & query strings: Just when I thought I had it figured out... [more inside]
posted on Feb 20, 2008 - 8 answers

Domain Mapping via .htaccess: I want to map a second domain I have to a subdirectory in my main Web directory (BTW, this is not a Typepad blog). My ISP asked that I set up the redirect via my .htaccess file but failed to supply the code to do that (we're having a little chat about suggesting I do something without giving me the tools I need to do it -g). [more inside]
posted on Jan 29, 2008 - 22 answers

I'm moving a website from one host to another and adding a level to the directory structure. How can I do this with mod_rewrite? [more inside]
posted on Jan 12, 2008 - 2 answers

Why are the 404 pages on my server broken?! I get a 500 Internal Server Error instead. Link to my .htaccess inside. [more inside]
posted on Dec 23, 2007 - 4 answers

Need an assist from the PHP gurus. I'm trying to set up a PHP script that generates an image from the latest Twitter status. [more inside]
posted on Nov 19, 2007 - 10 answers

I'm developing a custom 404 page using .htaccess to redirect to the 404.html. I'm trying to use PHP (via an include in the 404.html) to show the referring page (using $_SERVER['HTTP_REFERER']). This works fine. I'd also like to return the bad URL that originates the 404. Is this possible using PHP? [more inside]
posted on Nov 14, 2007 - 6 answers

Is there any way to automagically strip anchor tags from externally linked URLs? [more inside]
posted on Oct 29, 2007 - 8 answers

Is it possible to append trailing slashes AND have a URL redirect using .htaccess? [more inside]
posted on Oct 6, 2007 - 4 answers

.htaccess alternative for IIS 6? [more inside]
posted on Jul 5, 2007 - 8 answers

.htaccess question -- how many redirects is too many? [more inside]
posted on Mar 30, 2007 - 13 answers

301 redirectrs in .htaccess: how do I redirect calendar/* to /calendar.html ? I've tried modifying various examples online and they result in either "internal server error" or a 404 caused by incorrectly redirecting /calendar/* to /calendar.html/* . [more inside]
posted on Mar 13, 2007 - 12 answers

How do I write a .htaccess file the will redirect if you AREN'T coming from a specific website? [more inside]
posted on Feb 16, 2007 - 4 answers

I'm new to editing .htaccess files, and I'd like some help managing multiple domains on one hosting package. [more inside]
posted on Jan 30, 2007 - 5 answers

Taking a site offline with .htaccess. I have a server which is running in production, but I want to take it offline for some maintenance. While I want everyone who calls at any URL to be redirected to index.html, I want admins to be able to view the site in full. [more inside]
posted on Jan 3, 2007 - 6 answers

.htaccess with MAMP [more inside]
posted on Dec 21, 2006 - 6 answers

Anyone know that website that made redirects easy? [more inside]
posted on Dec 2, 2006 - 11 answers

Using htaccess, I'd like to redirect all requests from a random set of IPs to a text file explaining that the IP has been banned. What would be the easiest and most efficient way to do this? [more inside]
posted on Oct 26, 2006 - 5 answers

I have a Moveable Type weblog. I would like to redirect the feeds. This probably involves using .htaccess and mod_rewrite. My mind has grown weary after two hours of trying to get this to work. Can anyone offer advice? [more inside]
posted on Oct 25, 2006 - 4 answers

Regex assistant for redirecting affiliate links. [more inside]
posted on Sep 27, 2006 - 6 answers

I need to add a few lines to my htaccess file to deal with the fact that Google Image Search never updates its database [more inside]
posted on Sep 18, 2006 - 16 answers

Is there a way that I can tell if a page has been redirected by conf.d or .htaccess? [more inside]
posted on Jul 31, 2006 - 7 answers

Hardcore Apache question: How can I write an .htaccess file that will apply a RewriteRule to only the most recent file posted to my Wordpress blog? [more inside]
posted on Jul 24, 2006 - 13 answers

Help with modifying an .htaccess file. I'm on Dreamhost and using Expression Engine, if that makes any diff. [more inside]
posted on May 25, 2006 - 11 answers

I recently shifted the content management for my blog (www.sindark.com) from Blogger to WordPress. I shifted the Blogger version into a sub-directory, so that people who prefer to access old posts in that format can. Now, I want to use htaccess to automatically redirect people who try to access the Blogger archives in the old location. I want them sent to the Blogger files in the new location. [more inside]
posted on May 23, 2006 - 4 answers

Another redirect question. [more inside]
posted on Feb 28, 2006 - 9 answers

HtAccessFilter: I’m seeking regular expressions to describe URLs that encompass search engines’ image and video search engines, but not the engines themselves, so that I can block said image and video search engines using “SetEnvIfNoCase Referer” in .htaccess. Also, I’m also seeking to block all incoming requests for one particular URL which is popular with these video and image search engines but which no longer exists – but I don’t want to serve them the normal 404. [more inside]
posted on Jan 5, 2006 - 6 answers

Is there a mod_rewrite expert in the house that tell me what I'm doing wrong? [more inside]
posted on Nov 8, 2005 - 15 answers

A subdomain redirection question (any mod_rewrite experts?) [more inside]
posted on Aug 19, 2005 - 12 answers

I want to use my .htaccess file to specifically eliminate myspace.com profiles from hotlinking my files. My code is inside... [more inside]
posted on Aug 14, 2005 - 17 answers

How do I write a RewriteRule for an .htaccess file that includes if the user does (or doesn't) use a trailing slash? [more inside]
posted on Jul 15, 2005 - 2 answers

I need to shift one of my websites to a new domain - with the minimal amount of interruption to my Google juice. What is the best way to redirect traffic to the new site? .htaccess redirects? Something else? Other pointers?
posted on Jun 3, 2005 - 3 answers

As a followup to my previous .htaccess question, I have another. This one appears to be harder. [I explain my blunderings inside]
posted on Sep 28, 2004 - 5 answers

.htaccess question. I want to turn all the underscores in a url into dashes. More inside..
posted on Sep 24, 2004 - 7 answers

htaccess, SSI, and PHP parsing. Can one file get both php and ssi parsing? if yes, how, if not, help! [*]
posted on Aug 11, 2004 - 10 answers

The rather rude Popdex bot has been bugging my referrer log every 5-10 minutes. I wish to block it via a "deny from" in my .htaccess, but the source address, http://h69-10-144-111.n-01.net, fails to resolve to an IP. How do I block this rather obnoxious crawler?
posted on Jun 28, 2004 - 3 answers

Stupid newbie web "development" question, please help! How do I get windows not to ask me for a filename (as opposed to just the extension) when I try to create a .htaccess or .htpasswd file? Am I missing something really simple? Google assumes that anyone fooling around with this would, you know, actually sort of know what they were doing.
posted on Jun 22, 2004 - 8 answers

Will the lines [shown inside] 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?
posted on Jan 11, 2004 - 16 answers