If you have updated your website but can't see the changes, it's most likely your browser is using its own (old) copy of the site. You need to tell it to get a new copy from the server.
The quick way of telling it to get a new copy is to hold down shift while you click on the reload button (or press ctrl-f5). If the quick method doesn't work, you might need to clear out the browser's cache.
Clearing The Browser Cache
If you are using Internet Explorer to view the site then you will need to clear the temporary internet files.
To do this please follow these steps:
-
Open Internet Explorer
-
Choose Tools-->Internet Options
-
In the Browsing history section click the Delete...button
-
In the Temporary Internet Files section choose Delete files...
Sometimes this process will take a few minutes to delete these files. After this has completed click Close then Ok and close Internet Explorer completely.
If you are using Firefox, you need to clear the "Offline Storage Cache".
To do this please follow these steps:
-
Open Firefox
-
Choose Edit > Preferences
-
Click Advanced
-
Click Network
-
Click the Clear Now button
Custom PHP configuration
If your site requires a different PHP configuration to the standard on the server, create a file in the root of your site's ftp called php.ini with the relevant configuration snippets.
For example, if your site needs to have global variables registered, put the following in the file:
register_globals = On
The change is effective immediately on the site.
Redirecting pages
To redirect a page from one url to another, use url rewriting. Edit the .htaccess file in your html folder (the root of your website) and make sure the following line is at the start of the file:
RewriteEngine on
To redirect a page to another, use the following:
RewriteRule ^firsturl$ /secondurl [L,R]
so, for example:
RewriteRule ^oldpage.html$ /newpage.html [L,R]
The visitor will see the page URL flick from oldpage.html to newpage.html in their browser.
To make the redirect permanent (301 rather than 302 response) use: