My site works locally but not online?

Status
Not open for further replies.

sfdemox1

New Member
Messages
2
Reaction score
0
Points
1
I have put a site on here there is a main menu, a company configuration menu. This is php/mysql enabled.
My company config has a save submit button that saves the information and then loads the main menu, the main menu has includes for the db connection as well as an include for the saveco.php. saveco.php is what saves the information.
If I do this using my localhost (xammp) everything works good. click save takes you to the main menu and if you go back to company information the information is correct.
If I do this online I have to either refresh the main menu or load the company information twice to see the updated results?

Can anyone lead me in the direction of what I am doing wrong?
 

Dead-i

x10Hosting Support Ninja
Community Support
Messages
6,084
Reaction score
368
Points
83
Hi,

Please could you try adding the following line to your .htaccess file? :)

Code:
Header set Cache-Control "max-age=0, private, no-cache, no-store, must-revalidate"

Thank you,
 

sfdemox1

New Member
Messages
2
Reaction score
0
Points
1
F
Hi,

Please could you try adding the following line to your .htaccess file? :)

Code:
Header set Cache-Control "max-age=0, private, no-cache, no-store, must-revalidate"

Thank you,
Fantastic thank you so much this has solved my problem!!!! :)
 
Status
Not open for further replies.
Top