עבור לתוכן
View in the app

A better way to browse. Learn more.

HWzone

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

לא מצליח לעשות redirect לכל הsubdomains

Featured Replies

פורסם

שלום לכולם

אני מנסה ולא מצליח לעשות redirect לכל הsubdomains של האתר שלי.

ניסתי כל מיני קודים שונים בhtaccess ובינתיים שום דבר לא מצליח. הבעיה היא שאני כל הזמן מועבר לדף default של הcpanel

לדוגמה: אני מקליד סאבדומיין כלשהו http://something.pagebook.co.il ובמקום להיות מועבר לעמוד הבית (pagebook.co.il) אני מועבר לדף שגיאה כזה http://something.pagebook.co.il/cgi-sys/defaultwebpage.cgi

הקוד שלי בhtaccess נראה ככה: (אבל כמו שצינתי ניסיתי עוד דברים ושום דבר לא עוזר):

RewriteCond %{HTTP_HOST} ^([a-z0-9]+)\.pagebook\.co\.il$ [or]

RewriteCond %{HTTP_HOST} ^www\.([a-z0-9]+)\.pagebook\.co\.il$

RewriteRule ^(.*)$ "http\:\/\/www\.pagebook\.co\.il\/$1" [R=301,L]

כבר הגדרתי בDNS את הwildcard ע"י הגדרת CNAME Record של "*" לכל תת דומיינים

ואין שום דבר לא עוזר... חפרתי כבר את גוגל ולא הצלחתי למצוא תשובה.

מישהו נתקל בכזה דבר ויודע אולי איך לעזור?

פורסם
  • מחבר

חוק מרפי...

הרגע הצלחתי לפתור את הבעיה, מסתבר שההגדרה של ה CNAME Record של "*" לכל תת דומיינים היא זאת שגרמה לכל הבעיה.

היתי צריך קודם להגדיר את ה * כסאב דומיין

אפשר לנעול.

ארכיון

דיון זה הועבר לארכיון ולא ניתן להוסיף בו תגובות חדשות.

דיונים חדשים

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.