What is the best way to redirect a page? Meta refresh, php script, etc?![]()
What is the best way to redirect a page? Meta refresh, php script, etc?![]()
Javascript works, but it relies on javascript, obviously, so that's the third best option.
The meta refresh is a great idea, if you only have access to the source.
If you have access to how the page is served, as in using PHP, then that's the best option.
The question is what you have access to for the use of each.
Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
I think .htaccess is another even better way, if available. That may be PHP but, I think it's different.
http://www.webweaver.nu/html-tips/web-redirection.shtml
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
Ah, yes, but that's a completely different solution in that .htaccess is a system wide setup, whereas the methods above are individual for each page.
Using either individually the PHP location header, or widely the .htaccess method would be good, I'd think.
If these aren't available, then using preferably meta or even javascipt would work too.
Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
to add to djr33's comment
>If these aren't available, then using preferably meta or even javascipt would work too
Meta is the best option of the two as it's SEO friendly![]()
Well a .htaccess file may be in a specific directory for only files in that directory. That much I have already come across and used for setting mime types with it. So, if your server supports .htaccess, you should be able to just use a single file in the directory in question with the redirect information for the file(s) in that directory.
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
.htaccess seems like extra work as well as being not supported on all servers.
But if it works, sure.
Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
PHP location header does the same, though it does send the page to the PHP engine which then sends the browser to the next page. I think.
Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
Use <meta>
secondsCode:<meta http-equiv="refresh" content="1,myPage.htm">
page
....(o_ Penguins
.---/(o_- techno_racing
+(---//\-' in
.+(_)--(_)' The McMurdo 500
Bookmarks