It works fine.
But It seems to be when i go to front page at that time it is not loading.
I give you full scenario.
The main page without cookie working first time fine.
At .htaccess code is as follows.
Code: Select all
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^/?([^/]+)(/index.html)? City/index.php?City=$1 [QSA]
when i change city from dropdown box.At that time cookie stored and page loads which url like this:
http://www.example.com/New York/index.html
If cookie is there then every time user request for home page that time above city page will be displayed.
But Now Problem starts , when I delete cookie and try to load root index page
at that time page is not loading and url changed to something like this:
http://www.example.com/Script/index.html
or sometimes
http://www.examples.com/style/index.html
I don't know what going wrong.
Please help me .
Thanks in advance.