65 posts tagged with htaccess. (View popular tags)
Displaying 1 through 50 of 65. Subscribe:
How do I restrict access to a directory on my web site but still allow an audio streamer program to access the files? For instance, I want to put my mp3s in the audio directory but I want anyone going to mydomain.com/audio to not be able to download the tracks. The audio player being used is JW Player if that makes any difference. Thanks!
posted by You Should See the Other Guy
on Oct 5, 2009 -
16 answers
Is there a CIDR IP address calculator that can do what I want? If I enter an arbitrary beginning IP address and an ending IP address, it should then give me a list of CIDR-ified IP ranges. [more inside]
posted by chillmost
on Aug 26, 2009 -
4 answers
Can you help me with a mod_rewrite problem...? [more inside]
posted by twine42
on Jul 8, 2009 -
6 answers
I have a Wordpress blog (v2.8) that sudden started displaying an Internal Server Error message. My host (Dreamhost) found a problem with my .htaccess file. I didn't do anything to cause the problem so I am wondering what happened and if it could happen again.
I "fixed" it by replacing it with one that does nothing. I am also wondering what the file should contain. I know what its purpose is, but not much more than that. [more inside]
posted by 14580
on Jul 6, 2009 -
4 answers
How can I rewrite the image paths on my web server? [more inside]
posted by kirkaracha
on May 21, 2009 -
4 answers
Apologies for asking a question that I know will be answered already on the web, somewhere, but I can't find it. I'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.
posted by Cobbler
on Mar 18, 2009 -
12 answers
I use .htaccess files to allow users access to files in certain directories based on their IP addresses/ranges. They are linked to these file from a page (not within the htaccess protected directory) generated in PHP. Is there a way to display a variable on this PHP page based on whether or not the user will be allowed access into .htaccess protected directories? [more inside]
posted by chillmost
on Mar 17, 2009 -
7 answers
I'm moving Wordpress from www.mydomain.com to www.mydomain.com/blog, but I'm also putting in something new at root that I want people to see. Please .htaccess my brains out. [more inside]
posted by miniminimarket
on Mar 3, 2009 -
9 answers
My redirect regex doesn't work. How can I fix it? [more inside]
posted by kirkaracha
on Feb 2, 2009 -
8 answers
Can I use htaccess to deny certain non-existent directories in order to avoid going through my Drupal site (which requires connecting to my database)? [more inside]
posted by kosmonaut
on Jan 2, 2009 -
7 answers
I have a blog, which I did have available at blog.example.com. I have recently moved it to be a subdirectory of my main site www.example.com/blog. I am having some trouble with redirecting old links from the subdomain across the the new main site subdirectory, and I really need some help to get it working right. can someone help me craft a .htaccess file to handle the redirects?
posted by Scramblejam
on Dec 19, 2008 -
5 answers
Need to password protect a directory on my site in a fashion that allows me to see which approved users are logging in, and when. I know .htaccess will let me do do the security and the separate accounts, but can I get a report on user activity? Or is there a better way? [more inside]
posted by boombot
on Dec 1, 2008 -
3 answers
I want to move my Wordpress blog from a subdirectory on my domain to the root directory -- i.e., I want the URL of my posts to be changed from http://www.domain.com/blog/post-permalink to http://www.domain.com/permalink . What's the best way to ensure that external links don't die? Is there a way to make sure that individual posts will retain their Google PageRank? [more inside]
posted by tweebiscuit
on Nov 29, 2008 -
9 answers
Can I restrict access to a symbolically-linked path using htaccess? [more inside]
posted by jpoulos
on Oct 14, 2008 -
1 answer
Two domain names loading the same website - only the websites aren't being served from the same folder, despite the fact that they are served from the same server. There exist two folders: users on a Unix machine. How can I get both domain names to serve up the website from the same folder? And is there any reason I should NOT do this? [more inside]
posted by dance
on Oct 1, 2008 -
6 answers
Web server question. Can I combine htaccess and session variables from other systems? (more inside) [more inside]
posted by jpoulos
on Jul 23, 2008 -
6 answers
I'm configuring some htaccess files for multiple directories and I'm having some problems incorporating groups of authorized users. [more inside]
posted by chillmost
on Jul 11, 2008 -
2 answers
I would like to use .htaccess to pull out a specific part of a filename and display it in the "Description" column of a file directory on an apache web server. [more inside]
posted by maxwelton
on Jul 10, 2008 -
1 answer
I have a rewritecond which hands my seo friendly urls however im also trying to redirect some old pages to the new urls but the rewrite condition is screwing up the 301 redirect.
my htaccess is
RewriteEngine On
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^([^/]*) pagehandler.php?string=$1 [L]
Redirect 301 /view/facilities http://www.mysite.com/facilities
what is happening is if go to
http://www.mysite.com/view/facilities
im redirected to
http://www.mysite.com/facilities?string=view
rather than
http://www.mysite.com/facilities
posted by toocan
on Jul 2, 2008 -
8 answers
How do I redirect all my website's images and mp3s to another domain via .htaccess? [more inside]
posted by frenetic
on Jun 26, 2008 -
6 answers
What am I doing to my links pointing to images in a private directory that prevents me from seeing the pics in Dreamweaver CS3 Design mode? [more inside]
posted by bonobo
on Jun 22, 2008 -
3 answers
I need to redirect all traffic on a subdomain to https instead of http. mod_rewrite is installed, but I don't know how to use it. [more inside]
posted by The Radish
on Jun 11, 2008 -
7 answers
Not quite getting how mod_rewrite regex works when flatting urls with multiple variables. [more inside]
posted by Jezztek
on Jun 10, 2008 -
5 answers
Mod_rewrite and subdirectories and subdomains, oh my! [more inside]
posted by holgate
on Jun 2, 2008 -
8 answers
Website help: I'm asking for some input on (1) straightening out a problem with Google and its "description" for each page of my blog; (2) constructing a robots.txt exclusion for certain types of archive pages; and (3) the reason why something is looking for page URLs that have "function.fsockopen" at the end of them. [more inside]
posted by WCityMike
on May 30, 2008 -
10 answers
How on earth do I get pretty URLs to work in BBpress, when in a subdirectory of a Wordpress install? [more inside]
posted by generichuman
on Apr 23, 2008 -
4 answers
Drupal: Copying a site to a test site (subdirectory). The links, they go nowhere! [more inside]
posted by Null Pointer and the Exceptions
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 by your mildly obsessive average geek
on Mar 25, 2008 -
4 answers
Mod_rewrite & query strings: Just when I thought I had it figured out... [more inside]
posted by romakimmy
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 by Taken Outtacontext
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 by piro
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 by lou
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 by empyrean
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 by lyam
on Nov 14, 2007 -
6 answers
Is there any way to automagically strip anchor tags from externally linked URLs? [more inside]
posted by arielmeadow
on Oct 29, 2007 -
8 answers
Is it possible to append trailing slashes AND have a URL redirect using .htaccess? [more inside]
posted by Hot Like Your 12V Wire
on Oct 6, 2007 -
4 answers
.htaccess alternative for IIS 6? [more inside]
posted by cheerleaders_to_your_funeral
on Jul 5, 2007 -
8 answers
.htaccess question -- how many redirects is too many? [more inside]
posted by crickets
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 by Tuwa
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 by torpark
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 by rocketman
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 by fightorflight
on Jan 3, 2007 -
6 answers
.htaccess with MAMP [more inside]
posted by RobotHero
on Dec 21, 2006 -
6 answers
Anyone know that website that made redirects easy? [more inside]
posted by PandemicSoul
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 by maxpower
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 by jdroth
on Oct 25, 2006 -
4 answers
Regex assistant for redirecting affiliate links. [more inside]
posted by ao4047
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 by sindark
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 by 10ch
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 by tweebiscuit
on Jul 24, 2006 -
13 answers