Config Varnish Cache with apache and mod_rewrite


my website is currently running with apache and mysql. I want to have varnish running before apache. The problem is that my mod rewrite in the htaccess are not working when varnish is running before apache.

I need someone who can help me with this.


Options -MultiViews

RewriteEngine On

RewriteCond %{HTTP_HOST} ^[url removed, login to view]$ [NC]

RewriteRule ^(.*) [url removed, login to view]$1 [L,R=301]

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^([^/]+)$ [url removed, login to view]$1

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^([^/]+)/([^/]+)$ [url removed, login to view]$1&id=$2 [QSA]

ErrorDocument 404 /[url removed, login to view]

Skills: Apache, Linux, System Admin

See more: 404 d, explain wordpress mod rewrite apache, cpanel mod rewrite apache, mod rewrite apache wordpress, install mod rewrite apache, installing mod rewrite apache, lighttpd mod rewrite apache, apache mod rewrite url rewrite plesk, apache lighttpd mod rewrite, apache mod rewrite best website host, wordpress mod rewrite apache

About the Employer:
( 3 reviews ) Oldenburg, Germany

Project ID: #8082598

9 freelancers are bidding on average $28 for this job


Hi there, I am ready to start now, I am expert in - Linux RedHat/Centos and other distributions. Installed and managed thousands of servers. - Amazone WebServices EC2 / SES / AZURE MicroSoft - Asterisk VOIP Servic More

$34 USD in 1 day
(562 Reviews)

Installed and setup varnish on many servers in the past. Even wrote a custom modified version of varnish for cpanel server. Can help you with this, let me know.

$25 USD in 1 day
(64 Reviews)

Dear Client, Thank you for allowing us to place a bid on your project. We are one of the top Server Management Company in India. Our mission at 365 hosting Support is to provide high quality 24x7 ser More

$28 USD in 1 day
(44 Reviews)

Hi there sir! Our team would be glad to assist you in this task as it is exactly within our scope of expertize, so that we can provide you with quick and qualified service. In addition, we will give you one days of More

$60 USD in 0 days
(6 Reviews)

Hi, I have more than 6 years experience in setup and management of different Linux web hosting servers like CentOS, RedHat, Ubuntu, Debian etc. I provide so prompt project delivery, thus I perform my responsibili More

$35 USD in 1 day
(3 Reviews)

Hi, guten morgen. I have read your project description and placed my bid. I have experience in apache and mod_rewrite before , kindly consider me in this project. Thank you and looking forward for your respponse. More

$10 USD in 2 days
(5 Reviews)

Hello, I'm a system administrator with a great experience and I can do this fob for you. Also please check my profile and let me know ifyou are interested. Thanks

$25 USD in 1 day
(0 Reviews)

Hello, Warm Greetings from Syber Kloud Team !!! We are having 4+ years of experience in web industry. We have also developed following list of Php & Wordpress websites. 1. [url removed, login to view] 2. h More

$17 USD in 1 day
(0 Reviews)

A proposal has not yet been provided

$15 USD in 1 day
(0 Reviews)