0

I have this re-write rule on apache and working perfectly redirect to the site I want on ie but not on firefox or chrome. and I am wondering why acting differently on theses browsers??!!

this is my apache rewrite config

  RewriteEngine On
  RewriteLog "/opt/apache/logs/rewrite.log"
  RewriteLogLevel 1
  RewriteCond     %{HTTPS} !=on
  RewriteRule ^(.*)$ https://server/index.php [L,R] 

so the apache rule properly redirect to "https://server/index.php but on Firefox/chrome stop at "https://server". is there any mistake on my apache re-write configration?

thanks.

raindrop
  • 525
  • 1
  • 9
  • 16
  • Browsers don't have rewrite rules. Check with wireshark what is being sent, and give us more details. – LtWorf Dec 07 '12 at 00:53
  • thanks for the response but not understand what you mean.I didn't say the browser rewrite. this is apache config. and the site properly re-direct. as said it's working just fine with ie. my question is why Firefox not re-direct propelry.so would you tell me the role of wireshark . – raindrop Dec 07 '12 at 02:30
  • 1
    Check [this answer](http://stackoverflow.com/a/1128624/913097). Also, clean the cache in your browsers. – inhan Dec 07 '12 at 17:48
  • thanks clean the browser did the trick. – raindrop Dec 07 '12 at 20:40

2 Answers2

2

clean the Firefox/chrome cache and try it again. may be old information on browser conflict with new redirect.

eli1128
  • 134
  • 1
  • 2
  • 11
0

The browsers dont redirect and dont do redirects. Web server does redirects. Browser has nothing to do with it, wether it is Firefox, IE, Safari or whatever.

tonino.j
  • 3,837
  • 28
  • 27
  • I agree. however my question is about my apache configuration not about the browser because the configuration acting diferently on different borwser. – raindrop Dec 07 '12 at 04:58
  • It could be that Firefox / Chrome just cut off the "index.php" part of your url. However, as long as you only have one index.* file in your https:// folder, this shouldn't affect the outcome. You will still see the same output. – tonino.j Dec 07 '12 at 13:48