htaccess (1,000)


apache - .htaccess directives to*not* redirect certain URLs

apache - .htaccess directives to*not* redirect certain URLs

In an application that heavily relies on.htaccess RewriteRules for its PrettyURLs(CakePHP in my case), how do I correctly set up directives to exclude certain directories from this rewriting? That…


apache - Using mod_rewrite to Mimic SSL Virtual Hosts?

What is the best way to transparently rewrite a URL over an SSL connection with Apache 2.2? Apache 2 does not natively support multiple name-based virtual hosts for an SSL connection and I have heard…


apache - How do you redirect HTTPS to HTTP?

How do you redirect HTTPS to HTTP?. That is, the opposite of what(seemingly) everyone teaches. I have a server on HTTPS for which I paid an SSL certification for and a mirror for which I haven't and k…


.htaccess - Mod-Rewrite loading files behind the DocumentRoot

I'm using.htaccess and mod_rewrite to point to files that reside behind the DocumentRoot. My folder structure looks like this: home/ webroot/ other_files/ I have a.htaccess file in webroot…


php Zend/MVC without mod_rewrite

I've seen it mentioned in many blogs around the net, but I believe it shoud be discussed here. What can we do when we have an MVC framework(I am interested in ZEND) in PHP but our host does not prov…


php - Programmaticly building htpasswd

Is there a programmatic way to build htpasswd files, without depending on OS specific functions(i.e. exec(), passthru())?…


php - Redirect from domain name to a dotted quad hosted box

I have a php server that is running my domain name. For testing purposes I am running an asp.net on a dotted quad IP. I am hoping to link them together via either PHP or some kind of DNS/.htaccess v…



Redirecting non-www URL to www using.htaccess

I'm using Helicon's ISAPI Rewrite 3, which basically enables.htaccess in IIS. I need to redirect a non-www URL to the www version, i.e. example.com should redirect to www.example.com. I used the f…


How to convert Apache.htaccess files into Lighttpd rules?

It's big problem to convert mod_rewrite rules to lighttpd format…


How can I pre-compress files with mod_deflate in Apache 2.x?

I am serving all content through apache with Content-Encoding: zip but that compresses on the fly. A good amount of my content is static files on the disk. I want to gzip the files beforehand rather…




url redirect apache php how rewrite wordpress not from working