Related Content
Allowing Cached HTTPS Traffic From Drupal With Varnish And Pound
Speeding Up Apache And Drupal With Varnish
Varnish is a web application accelerator that provides an easy speed increase to most web applications and Drupal is no exception. It works by creating a reverse proxy service that sits in front of your web server and caches traffic that comes through it.
Adding iptables Rules With Ansible
Many systems and applications require certain access to certain ports and protocols. When installing these systems using Ansible it is necessary to also open up the needed ports so that the systems can function correctly. As there is no iptables module in Ansible the shell command is needed to add the iptables rules.
Turning Off Apache Basic Authentication For A Single Directory
When setting up staging sites or similar I often add a simple Apache authentication check in order to stop everyone from viewing the site. This is also useful in stopping search engine spiders from accessing a site with testing content on it, which generally causes trouble. It isn't amazingly secure, but it keeps almost everyone out.
Using Phing To Create Apache Virtual Hosts
Phing is an awesome tool for automating things and I use it more and more for automating all kinds of different tasks. One of the tasks that I don't tend to do all that much is setting up a new local virtual host for Apache on my development machines.
IE8 Downloading docx Files As zip On Apache
I recently built a Drupal site on an Apache server setup and everything seemed fine until someone running IE8 tried to download a .docx file. For some reason IE8 insisted that this file was a .zip file and would open it as such, causing a bit of confusion as to what the problem was.
Comments
Submitted by Infidel on Sun, 03/07/2010 - 19:12
PermalinkI have a question
When a user opens the url www.domain.com/param
I want it redirected to www.domain.com?param while masking the new url (the URL address displayed remains unchanged)
So that instead of accessing param as a folder, it accesses it as a url GET parameter
Is that possible using .htaccess?
Submitted by Eric on Wed, 09/08/2021 - 10:56
PermalinkHi Eric, I think what you want is possible, you need to rewrite the url from one form to the other.
If you look at systems like Drupal and WordPress you'll see that all of their traffic gets re-written by this rule.
The !-f condition will trigger if the file being requested actually exists. The same thing applied for the !-d condition. Then, all traffic will be routed to the main index.php file, without redirecting away from the current path. You might need to make a couple of modifications to get what you want working, but this should cover most of it.
Submitted by giHlZp8M8D on Wed, 09/08/2021 - 13:27
PermalinkAdd new comment