84 posts tagged with htaccess.
Displaying 1 through 50 of 84. Subscribe:

Magento SEO URLs/.htaccess

I have a magento website with urls like example.com/name-of-product.html and those work fine. But example.com/index.php/name-of-product.html The site owner's seo guy wants it fixed so only example.com/name-of-product.html works. So I went into the .htaccess file to make the change and it didn't work. [more inside]
posted by missmagenta on Apr 2, 2016 - 8 answers

htaccess Redirect Problem

Need help configuring .htaccess: parkeddomain.com redirects fine, but www.parkeddomain.com does not. [more inside]
posted by ljshapiro on Jun 3, 2013 - 7 answers

.htaccess redirect

I would like for http://bookmarks.mydomain.com/ to redirect to http://www.mydomain.com/subdir/www/. I suspect that I can achieve this with an .htaccess file, but I am not smart enough to figure how. Can anyone help?
posted by Proginoskes on Apr 22, 2013 - 5 answers

I need to redirect about 10,000 URLs

I've got to 301 redirect URLs for roughly 10,000 pages on a pair of Drupal sites. That seems like a lot to stuff into .htaccess. Are there better alternatives? [more inside]
posted by mph on Jun 6, 2012 - 7 answers

Block browser access to files on server

How can I block browser access to MP3 files, yet allow streaming? [more inside]
posted by ascetic on Feb 24, 2012 - 4 answers

Wordpress Multiuser + htaccess + uploading images = 404 links...

So I'm running Wordpress 3.0 multiuser-enabled, but I can't get any of the images (which all upload) on any blog but the first to display correctly. The only solution I've found online hasn't worked for me, and I think it's an .htaccess problem. [more inside]
posted by dubadubowbow on Jun 15, 2011 - 14 answers

htaccess to 404

.htaccess rule to direct results to 404 page. [more inside]
posted by cjorgensen on Apr 13, 2011 - 2 answers

Help my friend make a big splash!

A friend has a really big event that is very important to her career, and she wants to replace her website home page with a splash screen displaying all the information about this very special event. I have a question about how to accomplish this. [more inside]
posted by samoa on Jan 5, 2011 - 5 answers

Rewriting URLs when a WP post title is involved

I'm moving a blog from a CMS (s9y) to WordPress, and obviously want to keep the URLs for entries intact. Can I get a hand with a silly htaccess + WordPress issue? [more inside]
posted by hijinx on Dec 19, 2010 - 6 answers

Err... Whats's up Green? HTACCESS help anybody?

I am trying to replace all requests to a certain directory on my website with a certain image. Any request to http://mywebsite.com/specific_directory/*.* would be replaced with http://mywebsite.com/specific_img.jpg. [more inside]
posted by B(oYo)BIES on Nov 28, 2010 - 5 answers

301 Redirect Headache

A weird 301 redirect request for a website. [more inside]
posted by matimer on Nov 22, 2010 - 1 answer

.htaccess redirects

.htaccess redirects : how many is too many? [more inside]
posted by crunchland on Nov 15, 2010 - 6 answers

htaccess redirect problem

Newbie .htaccess problem [more inside]
posted by Paragon on Oct 21, 2010 - 18 answers

htaccess multi-domain redirect issues

I have .htaccess rewrite/redirect problems. What makes this more frustrating is that it is such a simple situation. [more inside]
posted by The Discredited Ape on Sep 19, 2010 - 4 answers

htpassword woes...

How do I use htaccess to manage user access across multiple sites with the same code base...? [more inside]
posted by sodium lights the horizon on Jul 15, 2010 - 5 answers

Make .htaccess redirect to a home domain without recursion

I need some .htaccess help in redirecting all web requests to a single home page. [more inside]
posted by Aquaman on Jul 7, 2010 - 4 answers

How can I use .htaccess to shorten URLs?

I need some specific help with my .htaccess file. I'm new to the Rewrite module and can't quite figure out what I need to do to serve my pages (which live inside some nested directories) up with a nice short URL. [more inside]
posted by Aquaman on Feb 23, 2010 - 8 answers

Prevent hotlinking without killing images in my RSS feed?

Help! I'm being hosed! But, how do I prevent hotlinking without killing the pictures in my RSS feed? [more inside]
posted by TheTorns on Jan 11, 2010 - 20 answers

.htaccess or some other solution for altering a url across a domain?

I use a CMS which needs domain.com/index.php/template/filename in order to work. I used to have an htaccess file which would make domain.com/template/filename work fine (ie, it would load the correct page even without the index.php there). Dreamhost recently upgraded its software and the htaccess file no longer works. Is there a solution for this problem? [more inside]
posted by You Should See the Other Guy on Dec 14, 2009 - 9 answers

Restricting access to directory... with conditions

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

CIDR IP Range Calculator

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...?

Can you help me with a mod_rewrite problem...? [more inside]
posted by twine42 on Jul 8, 2009 - 6 answers

Why did my Wordpress .htaccess file change or become corrupt?

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?

How can I rewrite the image paths on my web server? [more inside]
posted by kirkaracha on May 21, 2009 - 4 answers

How do I redirect subfolder URLs to subdomain URLs?

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

PHP and htaccess question

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

Redirect question, with a sweet twist.

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?

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 to avoid going through my Drupal site?

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

Please help me redirect visitors to my blog, from a subdomain to a subdirectory...

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

Securing a Directory and Logging Logins

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

What are best practices for changing the directory of a Wordpress blog?

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

Restricting access to a symbolically-linked path using htaccess

Can I restrict access to a symbolically-linked path using htaccess? [more inside]
posted by jpoulos on Oct 14, 2008 - 1 answer

two folders two domains one website

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

Can I combine htaccess and session variables from other systems?

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

.htaccess files and groups

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

htaccess and description column

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

Can you help me with .htaccess and 301 redirects?

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

Redirect images & mp3s to mirror via htaccess

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

Just like the neighbor's cat in your kids' sandbox...

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

Redirecting subdomain to https

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

Regex woes.

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

getting .htaccess to do httpd.conf's job

Mod_rewrite and subdirectories and subdomains, oh my! [more inside]
posted by holgate on Jun 2, 2008 - 8 answers

'Fsockopen', Plus A Couple of Googlebot Questions

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 do I make pretty URLs work in BBpress?

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 and the missing links.

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

Why is Apache not listing any files in an open directory?

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

%{QUERY_STRING} the Hivemind

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

Who Knows the Code?

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

mod_rewrite, modern delight.

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

Page: 1 2