Jump to content

Mod Rewrite Problem when data contents are updated.


watsmyname

Recommended Posts

Hello,

 

I have rewritten all my .php  files to .html using mod_rewrite. But now i have encountered a problem. Below is the example of code i used.

 

RewriteRule ^band/details/([0-9].*).html$ band_details.php?band_id=$1 [L]

 

The Problem is that, when i edit user info and redirect user to band_details.php page [in this case http://www.mysite.com/band/details/1.html], i don't see the updated content. No matter how many times i refresh the page i dont see updated contents. I have to CTRL+F5 to see the changes. The issue i guess is that i have rewritten this in .html and browser loads html files from cache. How to overcome this issue? Any help will be highly appreciable.

 

I also tried following code to prevent loading from cache but in vain.

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="no-cache">
<meta http-equiv="Expires" content="Wed, 19 Feb 2003 08:00:00 GMT">
<meta http-equiv="Cache-Control" content="no-cache">

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.