باز نشدن سایت با www

aliyaghobi

کاربر عضو
سلام دوستان

وقتی سایت رو با www میزنم فونت هاش بهم میریزه



چکار باید بکنم که وقتی کسی با www سایت رو بالا میاره به  ریدایرکت کنه

اینم فایل .htaccess

## Uncomment (remove # ONLY NOT ##) line below if installed in folder and add folder name after /## Example: Script is installed in /public_html/short/ then it should be: Rewritebase /short## Then the files below should be (add slash to all): /index.php?action=$1## Uncomment the code below to Use PHP 5.4# AddHandler application/x-httpd-php54 .php#Options -MultiViews RewriteEngine On## Uncomment the following line to use the multi-domain feature# RewriteCond %{HTTP_HOST} ^yourseconddomain\.com$ [NC]# RewriteRule ^(.*)$ [R=301,L]#Rewritebase /## Admin PanelRewriteCond %{REQUEST_FILENAME} !-dRewriteCond %{REQUEST_FILENAME} !-fRewriteRule ^admin/(.*)?$ admin/index.php?a=$1 [QSA,NC,L]## Sitemap ###RewriteRule ^sitemap.xml$ sitemap.php## Application HandlerRewriteCond %{REQUEST_FILENAME} !-dRewriteCond %{REQUEST_FILENAME} !-fRewriteRule ^(.*)?$ index.php?a=$1 [QSA,NC,L]## Error 404 ##ErrorDocument 404 /index.php?a=404با سپاس 

 

2roos

تازه وارد
مطمین نیستم ولی فک کنم میتونین از ریدایکت در کنترل پنلتون استفاده کنین !  :67:

 

iranenaz

کاربر عضو
RewriteCond %{HTTP_HOST} ^www\.(.+) [NC]

RewriteRule ^(.*) [R=301,NE,L]

 

aliyaghobi

کاربر عضو
RewriteCond %{HTTP_HOST} ^www\.(.+) [NC]RewriteRule ^(.*) [R=301,NE,L]
با این تداخل ایجاد نمیکنه؟!

کد:
## Uncomment the following line to use the multi-domain feature# RewriteCond %{HTTP_HOST} ^yourseconddomain\.com$ [NC]# RewriteRule ^(.*)$ [URL="http://yourfirstdomain.com/%241"]http://yourfirstdomain.com/$1[/URL] [R=301,L]
 
بالا