Using htaccess file locally with MAMP?

Hi, I was wondering if anyone can offer support to help me use a htaccess file locally with MAMP. I have a htaccess file which handles re-directions on my live site, but I need to use it in the ... Read more

2 answers Best answer by Tony Crockford

Regular Expression for .htaccess mod_rewrite RewriteRule

Hi, I am using the following code in my .htaccess file to handle a re-direction, but it isn't working, a 404 appears. Can anyone tell me if the expression is incorrect, or if there is any other ... Read more

1 answer Latest by Edward Williams over 8 years ago

redirect (301) shtml pages to php

I've read some of the other similar questions/answers here on doctype regarding best redirect practices. My unique situation remains unanswered. Doing a site redesign and creating pages as php. ... Read more

2 answers Latest by Dave E over 8 years ago

Redirect IE browsers using .htaccess?

I'm currently working on an extremely html5 / css3 based portfolio, inevitably it looks like hell in IE, instead of spending hours, maybe days, to fix all the problems I've decided to create a "sim... Read more

4 answers Best answer by Rich Bradshaw

Ben 11

Setting a Global Doctype

Is it possible using PHP (I was thinking may the phpinfo file or a php.ini file) or an .htaccess file to set a doctype for an entire subdirectory? Basically, in a nutshell, I'm using a softwar... Read more

2 answers Best answer by Tony Crockford

GZipping fonts

I use GZip compression on my site and this works for all files but it is not currently compressing fonts. Can you tell me what is wrong with the below .htaccess code ? <ifModule mod_gzip.... Read more

2 answers Best answer by Shaun Robinson

How to redirect with htaccess?

I know how the basic htaccess redirect works, but I have a specification situation. To be honest, I'm not even sure redirect is the correct approach. I have a website: http://www.example.com/... Read more

4 answers Best answer by o.k.w

.htaccess: redirect IF no path/filename is given

Say I own "example.com" and I want everyone typing in "example.com" to be directed to "blog.example.com" However, if someone types in "example.com/directory", I don't want it to be redirected to... Read more

2 answers Best answer by Doug

301 Redirect with htaccess and Cache: How to Delete Old Cache?

So after much help and research I've FINALLY been able to get the 301 redirects working via .htaccess file, but I noticed that unless I actually hit 'refresh' on my browser it will not redirect the... Read more

2 answers Latest by Clay Hinson over 9 years ago

.htaccess to hide folder in URL

[Voice LTD][1] Colleague has been editing this newly released website in the /testing/ folder for a long time now, and we released it last night. For some reason, everything still links to the /... Read more

1 answer Latest by Tony Crockford almost 10 years ago