I formed two different RewriteRules for my page:

# Enable URL Rewriting
RewriteEngine on

# exclude followed stuff
RewriteRule ^(js|img|css|favicon\.ico|image\.php|anprobe|content|libs|flash\.php|securimage)/ - [L,QSA,S=2]

# conditions (REQUEST dont point @ file|dir|link)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l

# rules
RewriteRule ^(?!index\.php)brillen/(.*(brillen)|360|neu)/(.*)([a-zA-Z0-9]{5}-[a-zA-Z0-9]{5}(?!\.))(.*)$     /index.php/brillen/$1?art_id=$4&$5&%{QUERY_STRING}      [NS,QSA,L]
RewriteRule ^(?!index\.php)(.*)$                                                            /index.php/$1                                   [NS,QSA,L]

... and I am experiencing an unusual problem, which is based on every request leading to the page internally to load two times, which results in the issue that db actions and email dispatching will also be performed two times.

Does anybody know concerning that?

Thanks ahead of time!

Note 1: All asked for assets are valid and available based on the browser's resource monitoring.

Note 2: May the issue originate in retaining and publish-processing the road_INFO? (/index.php/$1 => /index.php/foo/bar/...)

The rewrite Engine cannot create a single HTTP request run two times. It routes the HTTP request Apache either to a statc file, a proxy function, or perhaps a module (like PHP) with alteration within the request. However it cannot clone the request and provide it 2 occasions to apache.

If you have any "run two times" problem odds are that you're hit through the empty image url bug. Actually it's not just a bug it is a feature of HTTP.

If you achieve somewhere an empty GET url HTTP condition the browser should resend exactly the same query (the one which gave him the present page) with same parameters. This can produce a Publish request happen 2 occasions (when the asked for first page were a Publish). Where are these empty GET url? More often than not you receive either :

<IMG SRC="" ...> (in the HTML)


url() (in the css)


<script type="text/javascript" src=""></script>
<link rel="stylesheet" type="text/css" href=""> (in the HTML headers)

I'd exactly the same problem (approximately I figured). It had been triggered through the request favicon.ico, that we had not considered during my rewrite rule.