A colleague recommended I repost this from StackOverflow to ServerFault:
This has been driving me crazy. I have a web application that's being served via Apache Web Server. The database server that ...

Let's say I have this IP Address 11.12.13.14 and the domain example.com. Now what I want is to redirect the user from IP Address to domain name (but without changing the domain name to address bar). ...

I am trying to get one cookie to work with 2 domains. Currently using an agreement page once a users first views the website that it will come up and they have to accept the ToS to continue, however ...

I'm using a Web server with xampp. I wrote a .htaccess to block access to the folder where my php files are. However, when a user is logged in my website, I can't access the php files. Is there any ...

I have a WebApplication behind a Apache2.2, which is used as a reverse proxy.
Now I want to limit access to the root folder of the application and to the subfolder docs. However I need different users ...

I'm testing the rule below else where and it's working but on my system it's not (centos 7, Apache/2.4.6) [I changed my domain to domain.com for the post here]
the purpose of the rule is to rewrite ...

I have been stuck with an issue with rewrite on apache on CentOS.
If I load my site from HTTP, it works fine. Rewrite rules work. Once I change it to HTTPS, the rewrite rules don't work.
After some ...

I'm trying to password protect one folder on my web site using an .htaccess file with an .htpasswd file. It works and I get it to password protect it.
Can I add something to my folders .htaccess file ...

I'm trying to set a variable MAGE_RUN_CODE for Magento in .htaccess depending on the domain name. I have the following on my local MAMP installation, and it is working as I'd like. I have two sites: ...

I'm trying to employ caching to speed up the response time of a website. Most of the documentation I have read suggests setting expiration to +1 month from time of access as follows:
ExpiresActive On
...

My server is getting hit hard by bots, etc., looking for various files in /cgi-bin/, like search.cgi, YaBB.pl, gitweb.perl, perl, gitweb.pl, htsearch, and on and on.
I want to deny all access (send a ...

I'm trying to get all request to the server to go to the index.php file with the request information.
Also, I want to prevent accessing the index.php file directly.
The second part works fine but I ...

We're migrating from one subdomain to another. This particular domain has a subset of several websites. I've setup the following rewrite to handle the redirect globally:
In docroot/.htaccess ("Rule ...

i have a cloud vps at ovh having 8GB of ram, a 6 vCores processor and installed Parallels Plesk 12 on Ubuntu 14.04 (64 bits)
I have more than 10 sites in there but only 2 have traffic
From histats:
...

I am deploying a legacy site on a server running Ubuntu 14.04 version. This site was developed using Symfony framework 1.4 and it was originally deployed at a shared server, thus redirections between ...

I'm trying to redirect www.example.com to a hosted blog at https://www.example.wordpress.com. The domain redirect works, but gives me a 403 error because it's redirecting http to https. Example.com is ...

I have a website that uses .htaccess file. After digging for a problem I had, I found that I can use FallbackResource.
It makes everything way simple on the apache configuration but more work on the ...