Forum Moderators: phranque
proxyHunter, I use a free website statistics program called www.analog.cx that uses your site's raw access logs and runs on your local machine to display your sites activity. It is customizable to show many things, including referrers. I typically config referrers to have 2 columns, one for requests and one for page views. By doing this, it is obvious when files other than pages are requested, and it displays the clickable referrer.
So... when I see 12 hits from h*tp://example.com but 0 page views, I know the hits were image files, or possibly they're linking to one of my scripts. Then I can follow the link to investigate.
I've currently placed it under the
Servername ww.abc.com
RewriteEngine on
rewritecond ...
but it doesnt work, although the site is still running.
I've tried the same rules in .htaccess & it works.
Only for 1 site on the server/
Thanks
... in .htaccess, the path that's used in RewriteRule patterns does not begin with a slash, but in httpd.conf, it does.
Just to make it as confusing as possible, the patterns for RewriteCond %{REQUEST_URI} are the same between .htaccess and httpd.conf (both patterns will start with a slash), but the patterns for RewriteRule differ.
Jim
The rewriterule works, but when I tried it on other browsers it also follows the same rewriterule?
For info on multiple RewriteRules under one RewriteCond, see the [C] chain flag for RewriteRule.
If the old and new filenames have some relationship or pattern to them like Old1->New1 and Old2->New2, etc., then use backreferences to rewrite all of them with a single RewriteRule, e.g.
RewriteRule ^Old(.*) /New$1 Another thing you need to know is that HTTP_USER_AGENT will be unreliable to detect Opera. Opera can 'spoof' as Internet Explorer. I'm not sure if it's still true, but older versions used to spoof as Explorer by default(!) - right out of the box(!). So, detecting Opera may only work for 'power users' who have configured it to identify itself properly as Opera, and not as IE. And this browser setting affects only the referrer sent by Opera, it does not affect how Opera works or how it renders HTML or interprets client-side scripting.
Some related discussion going on right now: [webmasterworld.com...] - See the potentially-useful JavaScript Opera detection tip.
Jim
Random reference:
"The Spongers report details referrals from external pages to non-page files on the site. Entries in this report are likely to be caused by other sites sponging graphics or downloads from the site." No more questions, back to reading again...man how long did it take you to sort of " master " it :)
Answering these questions in the forum must be a good practice for you to keep you sharp :)
So will Ralf S. Engelschall ever win the Noble Technology Price? But is there a Noble Technology Price?