سلام ، آیا این بازدید اول شماست ؟ یا
نمایش نتایج: از شماره 1 تا 8 , از مجموع 8

موضوع: apache 301 redirect

  1. #1

    تاریخ عضویت
    Aug 2009
    محل سکونت
    Afghanistan - Herat
    نوشته ها
    2,445
    تشکر
    1,026
    تشکر شده 450 بار در 357 ارسال

    apache 301 redirect

    سلام
    در بعضی مقالات سئو خوندم که باید با استفاده از apache 301 redirect سایت رو یا روی www و یا روی بدون www قفل کرد و این امر باعث افزایش پیج رنک میشه.
    در این مورد بحث های شدیدی هم قبلاً در انجمن شده که لینکش رو میذارم:
    [مهمان/کاربر گرامی برای دیدن لینک ها ابتدا باید عضو سایت شوید و لاگین کنید برای ثبت نام اینجا کلیک کنید]
    [مهمان/کاربر گرامی برای دیدن لینک ها ابتدا باید عضو سایت شوید و لاگین کنید برای ثبت نام اینجا کلیک کنید]
    خب اما من هنوز به این نتیجه نرسیدم که آیا قفل کردن یا نکردن سایت روی www تاثیری در افزایش پیج رنک داره یا نه؟
    اصلاً با www یا بی www ؟
    دوستان عزیز که اطلاعاتی دارند لطفاً در این تاپیک ارائه کنند.
    ممنون.

    جهت مشاهده لینک ها باید ثبت نام کنید یا لاگین کنید.


  2. # ADS
    تبلیغات در جوملا فارسی
    تاریخ عضویت
    Always
    محل سکونت
    Advertising world
    نوشته ها
    Many
     

  3. #2

    تاریخ عضویت
    Dec 2006
    محل سکونت
    heart of the world
    نوشته ها
    4,889
    تشکر
    145
    تشکر شده 137 بار در 90 ارسال

    پاسخ : apache 301 redirect

    سلام.

    قفل کردن روی یک حالت بدون www یا با www توصیه می شود.

    با www یا بدون www بستگی به تصمیم خودتون داره. اما معمول هست که از حالت بدون www به حالت با www ریدایرکت بشه.

    یا علی

    جهت مشاهده لینک ها باید ثبت نام کنید یا لاگین کنید.


  4. #3

    تاریخ عضویت
    Aug 2009
    محل سکونت
    Afghanistan - Herat
    نوشته ها
    2,445
    تشکر
    1,026
    تشکر شده 450 بار در 357 ارسال

    پاسخ : apache 301 redirect

    سلام
    خیلی ممنون بابت پاسختون.
    مقاله موجود در ویکی رو خوندم و کد رو در htaccess. قرار دادم ، سایت باز میشه اما با هر دو آدرس و روی www هم قفل نشده.
    مشکل از کجا می تونه باشه؟

    این هم سورس فایل:
    کد:
    ##
    # @version $Id: htaccess.txt 14401 2010-01-26 14:10:00Z louis $
    # @package Joomla
    # @copyright Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
    # @license [مهمان/کاربر گرامی برای دیدن لینک ها ابتدا باید عضو سایت شوید و لاگین کنید برای ثبت نام اینجا کلیک کنید] GNU/GPL
    # Joomla! is Free Software
    ##
    
    
    #####################################################
    # READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE
    #
    # The line just below this section: 'Options +FollowSymLinks' may cause problems
    # with some server configurations. It is required for use of mod_rewrite, but may already
    # be set by your server administrator in a way that dissallows changing it in
    # your .htaccess file. If using it causes your server to error out, comment it out (add # to
    # beginning of line), reload your site in your browser and test your sef url's. If they work,
    # it has been set by your server administrator and you do not need it set here.
    #
    #####################################################
    
    ## Can be commented out if causes errors, see notes above.
    Options +SymLinksIfOwnerMatch
    
    #
    # mod_rewrite in use
    
    RewriteEngine On
    
    ########## Begin - Rewrite rules to block out some common exploits
    ## If you experience problems on your site block out the operations listed below
    ## This attempts to block the most common type of exploit `attempts` to Joomla!
    #
    ## Deny access to extension xml files (uncomment out to activate)
    #<Files ~ "\.xml$">
    #Order allow,deny
    #Deny from all
    #Satisfy all
    #</Files>
    ## End of deny access to extension xml files
    RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
    # Block out any script trying to base64_encode crap to send via URL
    RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
    # Block out any script that includes a <script> tag in URL
    RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
    # Block out any script trying to set a PHP GLOBALS variable via URL
    RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
    # Block out any script trying to modify a _REQUEST variable via URL
    RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
    # Send all blocked request to homepage with 403 Forbidden error!
    RewriteRule ^(.*)$ index.php [F,L]
    #
    ########## End - Rewrite rules to block out some common exploits
    
    # Uncomment following line if your webserver's URL
    # is not directly related to physical file paths.
    # Update Your Joomla! Directory (just / for root)
    
    # RewriteBase /
    
    
    ########## Begin - Joomla! core SEF Section
    #
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} !^/index.php
    RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$ [NC]
    RewriteRule (.*) index.php
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
    #
    ########## End - Joomla! core SEF Section
    
    RewriteEngine on
    RewriteCond {HTTP_HOST} afghandown.org
    RewriteRule (.*) http://www.afghandown.org$1 [R=301]

    جهت مشاهده لینک ها باید ثبت نام کنید یا لاگین کنید.


  5. #4

    تاریخ عضویت
    Jun 2009
    محل سکونت
    Kuala Lumpur
    نوشته ها
    2,440
    تشکر
    0
    تشکر شده 16 بار در 16 ارسال

    پاسخ : apache 301 redirect

    سلام

    به این کد تغییر بدید:
    کد:
    ##
    # @version $Id: htaccess.txt 14401 2010-01-26 14:10:00Z louis $
    # @package Joomla
    # @copyright Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
    # @license [مهمان/کاربر گرامی برای دیدن لینک ها ابتدا باید عضو سایت شوید و لاگین کنید برای ثبت نام اینجا کلیک کنید] GNU/GPL
    # Joomla! is Free Software
    ##
    
    
    #####################################################
    # READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE
    #
    # The line just below this section: 'Options +FollowSymLinks' may cause problems
    # with some server configurations. It is required for use of mod_rewrite, but may already
    # be set by your server administrator in a way that dissallows changing it in
    # your .htaccess file. If using it causes your server to error out, comment it out (add # to
    # beginning of line), reload your site in your browser and test your sef url's. If they work,
    # it has been set by your server administrator and you do not need it set here.
    #
    #####################################################
    
    ## Can be commented out if causes errors, see notes above.
    Options +SymLinksIfOwnerMatch
    
    #
    # mod_rewrite in use
    
    RewriteEngine on
    RewriteCond {HTTP_HOST} afghandown.org
    RewriteRule (.*) http://www.afghandown.org$1 [R=301]
    
    ########## Begin - Rewrite rules to block out some common exploits
    ## If you experience problems on your site block out the operations listed below
    ## This attempts to block the most common type of exploit `attempts` to Joomla!
    #
    ## Deny access to extension xml files (uncomment out to activate)
    #<Files ~ "\.xml$">
    #Order allow,deny
    #Deny from all
    #Satisfy all
    #</Files>
    ## End of deny access to extension xml files
    RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
    # Block out any script trying to base64_encode crap to send via URL
    RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
    # Block out any script that includes a <script> tag in URL
    RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
    # Block out any script trying to set a PHP GLOBALS variable via URL
    RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
    # Block out any script trying to modify a _REQUEST variable via URL
    RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
    # Send all blocked request to homepage with 403 Forbidden error!
    RewriteRule ^(.*)$ index.php [F,L]
    #
    ########## End - Rewrite rules to block out some common exploits
    
    # Uncomment following line if your webserver's URL
    # is not directly related to physical file paths.
    # Update Your Joomla! Directory (just / for root)
    
    # RewriteBase /
    
    
    ########## Begin - Joomla! core SEF Section
    #
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} !^/index.php
    RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$ [NC]
    RewriteRule (.*) index.php
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
    #
    ########## End - Joomla! core SEF Section

    یا علی

    جهت مشاهده لینک ها باید ثبت نام کنید یا لاگین کنید.


  6. #5

    تاریخ عضویت
    Aug 2009
    محل سکونت
    Afghanistan - Herat
    نوشته ها
    2,445
    تشکر
    1,026
    تشکر شده 450 بار در 357 ارسال

    پاسخ : apache 301 redirect

    سلام
    این کد رو هم جایگزین کردم اما هنوز سایت با هردو آدرس باز میشه.

    جهت مشاهده لینک ها باید ثبت نام کنید یا لاگین کنید.


  7. #6

    تاریخ عضویت
    Jun 2009
    محل سکونت
    Kuala Lumpur
    نوشته ها
    2,440
    تشکر
    0
    تشکر شده 16 بار در 16 ارسال

    پاسخ : apache 301 redirect

    سلام

    کد زیر رو قرار بدید:

    کد:
    ##
    # @version $Id: htaccess.txt 14401 2010-01-26 14:10:00Z louis $
    # @package Joomla
    # @copyright Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
    # @license [مهمان/کاربر گرامی برای دیدن لینک ها ابتدا باید عضو سایت شوید و لاگین کنید برای ثبت نام اینجا کلیک کنید] GNU/GPL
    # Joomla! is Free Software
    ##
    
    
    #####################################################
    # READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE
    #
    # The line just below this section: 'Options +FollowSymLinks' may cause problems
    # with some server configurations. It is required for use of mod_rewrite, but may already
    # be set by your server administrator in a way that dissallows changing it in
    # your .htaccess file. If using it causes your server to error out, comment it out (add # to
    # beginning of line), reload your site in your browser and test your sef url's. If they work,
    # it has been set by your server administrator and you do not need it set here.
    #
    #####################################################
    
    ## Can be commented out if causes errors, see notes above.
    Options +SymLinksIfOwnerMatch
    
    #
    # mod_rewrite in use
    
    RewriteEngine On
    RewriteCond %{HTTP_HOST} !^(www\.afghandown\.org)?$
    RewriteRule (.*) http://www.afghandown.org$1 [R=301,L]
    
    ########## Begin - Rewrite rules to block out some common exploits
    ## If you experience problems on your site block out the operations listed below
    ## This attempts to block the most common type of exploit `attempts` to Joomla!
    #
    ## Deny access to extension xml files (uncomment out to activate)
    #<Files ~ "\.xml$">
    #Order allow,deny
    #Deny from all
    #Satisfy all
    #</Files>
    ## End of deny access to extension xml files
    RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
    # Block out any script trying to base64_encode crap to send via URL
    RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
    # Block out any script that includes a <script> tag in URL
    RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
    # Block out any script trying to set a PHP GLOBALS variable via URL
    RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
    # Block out any script trying to modify a _REQUEST variable via URL
    RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
    # Send all blocked request to homepage with 403 Forbidden error!
    RewriteRule ^(.*)$ index.php [F,L]
    #
    ########## End - Rewrite rules to block out some common exploits
    
    # Uncomment following line if your webserver's URL
    # is not directly related to physical file paths.
    # Update Your Joomla! Directory (just / for root)
    
    # RewriteBase /
    
    
    ########## Begin - Joomla! core SEF Section
    #
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} !^/index.php
    RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$ [NC]
    RewriteRule (.*) index.php
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
    #
    ########## End - Joomla! core SEF Section
    یا علی

    جهت مشاهده لینک ها باید ثبت نام کنید یا لاگین کنید.


  8. #7

    تاریخ عضویت
    Aug 2009
    محل سکونت
    Afghanistan - Herat
    نوشته ها
    2,445
    تشکر
    1,026
    تشکر شده 450 بار در 357 ارسال

    پاسخ : apache 301 redirect

    سلام
    خیلی ممنون درست شد.
    اما میشه بگید چه چیز هایی به این کد اضافه کردید و چه تغییراتی دادید؟

    جهت مشاهده لینک ها باید ثبت نام کنید یا لاگین کنید.


  9. #8

    تاریخ عضویت
    Jun 2009
    محل سکونت
    Kuala Lumpur
    نوشته ها
    2,440
    تشکر
    0
    تشکر شده 16 بار در 16 ارسال

    پاسخ : apache 301 redirect

    سلام

    کدی که مربوط به redirect بود مشکل داشت و کامل نبود.
    همچنین جای کد باتوجه به باقی محتوای htaccess نامناسب بود.


    یا علی

    جهت مشاهده لینک ها باید ثبت نام کنید یا لاگین کنید.


موضوعات مشابه

  1. مشکل در استفاده از APACHE mod_rewrite
    توسط Devil Jin در انجمن سوالهای عمومی جوملا 1.5 فارسی
    پاسخ ها: 5
    آخرين نوشته: 02-07-2011, 12:28 PM
  2. Apache چیه و چه جوری run می کنن؟
    توسط navvab_06 در انجمن متفرقه
    پاسخ ها: 3
    آخرين نوشته: 04-08-2007, 10:43 AM
  3. مشکل apache
    توسط SOROUSH122 در انجمن مدیریت مامبو فارسی
    پاسخ ها: 4
    آخرين نوشته: 09-21-2006, 07:44 PM

علاقه مندی ها (Bookmarks)

علاقه مندی ها (Bookmarks)

مجوز های ارسال و ویرایش

  • شما نمیتوانید موضوع جدیدی ارسال کنید
  • شما امکان ارسال پاسخ را ندارید
  • شما نمیتوانید فایل پیوست کنید.
  • شما نمیتوانید پست های خود را ویرایش کنید
  •