הוסטס - פורום אחסון האתרים הגדול בישראל

הוסטס - פורום אחסון האתרים הגדול בישראל (https://hosts.co.il/forums/index.php)
-   פורום תיכנות (https://hosts.co.il/forums/forumdisplay.php?f=14)
-   -   עזרה בהפניה 301 (https://hosts.co.il/forums/showthread.php?t=68684)

SmartSeo 23-10-08 16:11

עזרה בהפניה 301
 
אני מעוניין להפנות דומיין ממצב site.com לwww.site.com

כדי לבצע את ההפניה אני צריך להוסיף לקובץ htaccess את הקוד הזה?

Redirect permanent / http://www.newdomain.com/

תודה לעוזרים

vadimg88 23-10-08 16:29

לא אתה צריך להוסיף את הקוד הבא ולשנות בהתאם כמובן.

קוד:

### REWRITES ###
Options +FollowSymLinks
RewriteEngine on

### Rewrite subdomain to full domain ###
RewriteCond %{HTTP_HOST}  !^www\.phpfreaks\.co\.il [NC]
RewriteCond %{HTTP_HOST}  !^$
RewriteRule ^/(.*)        http://www.phpfreaks.co.il/$1 [L,R]


SmartSeo 23-10-08 17:00

אז אני מוסיף את הקוד הבא.. לhtaccess של האתר שלי serv4free

### REWRITES ###
Options +FollowSymLinks
RewriteEngine on

### Rewrite subdomain to full domain ###
RewriteCond %{HTTP_HOST} !^www\.serv4free\.com [NC]
RewriteCond %{HTTP_HOST} !^$
RewriteRule ^/(.*) http://www.serv4free.com/$1 [L,R]

vadimg88 23-10-08 17:03

כן.


כל הזמנים הם GMT +2. הזמן כעת הוא 17:25.

מופעל באמצעות VBulletin גרסה 3.8.6
כל הזכויות שמורות ©
כל הזכויות שמורות לסולל יבוא ורשתות (1997) בע"מ