![]() |
[HTML] הפנייה תקנית.
הקוד כפי שאני שם אותו ככה:
HTML קוד:
<META HTTP-EQUIV="Refresh" CONTENT="5; URL=index.php?act=main"> מה הבעיה ? |
תנסה לרשום את הכל באותיות קטנות..
PHP קוד:
|
אני ממליץ לך לבצע הפניית 301.
|
ניסיתי לרשום באותיות קטנות, זה לא שינה(השגיאה עדיין אותה שגיאה).
ואני לא יכול לשים 301 כי זה באמצע הקוד. ~עריכה~ בעצם אחרי ששמתי את הכל באותיות קטנות נשארה רק שגיאה אחת: Line 33 column 63: document type does not allow element "meta" here. ...p-equiv="refresh" content="5; url=index.php?act=main"/> The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed). One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error). ~עריכה~ וכשתיקנתי אותה ככה: PHP קוד:
|
אולי במקום לעשות את כל הקוד בשורה אחת, תנסה לפרוס אותו על כמה שורות? (אני לא בטוח בזה, אבל שווה לנסות)
|
לא זאת הבעיה.
|
אפשר לינק לדף פה או בפרטי?
|
שים את ה meta הזה ב head שלך.
|
תשתמש בהפניית JS.
מכיוון שהוא עושה את ההפניה באמצע הדף הוא לא יכול לשים את זה ב HEAD. |
PHP קוד:
|
כל הזמנים הם GMT +2. הזמן כעת הוא 00:18. |
מופעל באמצעות VBulletin גרסה 3.8.6
כל הזכויות שמורות ©
כל הזכויות שמורות לסולל יבוא ורשתות (1997) בע"מ