mahii

سرعت لود سایت

22 پست در این موضوع

سلام، من میخوام سرعت لود سایتم بره بالا، با اینکه مطلب خاصی نداره اما کنده،

http://tonekaplot.ir/

توی سایت getmetrix سرعت 23% بود که فکر نمیکنم خوب باشه، من قالبم رو خودم طراحی کردم،توی کدهای optimize verison هم نمیدونم باید چه تغییراتی بدم تا سرعت بره بالا، فقط اون کدی که برای کل قالب بود رو جایگزین کردم که تاثیری نداشت!

Share this post


Link to post
Share on other sites
آموزش ووکامرس قالب جوملا قالب وردپرس قالب رایگان وردپرس قالب رایگان جوملا هاست نامحدود هاست جوملا هاست لاراول هاست وردپرس هاست ارزان هاست ربات تلگرام خرید دامنه آموزش ساخت ربات تلگرام با php آموزش html و css آموزش لاراول آموزش cPanel آموزش php آموزش سئو وردپرس آموزش امنیت وردپرس آموزش وردپرس آموزش فرم ساز RSform آموزش سئو جوملا آموزش فروشگاه ساز Hikashop آموزش فروشگاه ساز ویرچومارت آموزش طراحی سایت آگهی تبلیغاتی آموزش امنیت جوملا آموزش طراحی سایت فروش فایل آموزش طراحی قالب ریسپانسیو با Helix آموزش جوملا 3 آموزش ساخت ربات دکمه ی شیشه ای آموزش ساخت ربات همکاری در فروش آموزش ساخت ربات جذب ممبر آموزش ساخت ربات ضد اسپم آموزش ساخت ربات پیوست فایل سورس ربات مدیر گروه | ربات مدیر گروه همسریابی

تصاویر شما وضعیت خوبی دارند ، احتمالا کد های (فرخوانی های) زیادی تو قالب دارید

Share this post


Link to post
Share on other sites
تصاویر شما وضعیت خوبی دارند ، احتمالا کد های (فرخوانی های) زیادی تو قالب دارید

میشه بیشتر توضیح بدین؟! چبکار باید بکنم؟ من کد قالبم رو با optimizesh عوض کردم

Share this post


Link to post
Share on other sites

این کارهایی که میگم بکن هم برای سئو سایتت خوبه هم سرعتت!

1 شما gzip فعال کن حتما!

برای فعال کردنش به این مسیر برو

سایت/تنظیمات کلی/سرور/فشرده سازی Gzip/بله

2 بیا این مسیر

سایت/تنظیمات کلی/

در سمت چپ تنظیمات SEO این گزینه ها رو فعال کن

استفاده از mod_rewrite

افزودن پسوند به آدرس ها

3 برو به هاست خودت و فایل htaccess.txt به htaccess. تغییر نام بده

بعد تو فایل htaccess همه رو پاک کن کدی که زیر قرار میدم قرار بده فقط یادت باشه به جای s1r101.com سایت خودتو بنویسی این کد تو سئو هم خیلی کمکت میکنه!

AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript

SetOutputFilter DEFLATE

<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType text/html "access plus 1 seconds"
ExpiresByType image/gif "access plus 2 days"
ExpiresByType image/jpeg "access plus 2 years"
ExpiresByType image/png "access plus 3 years"
ExpiresByType text/css "access plus 2 years"
ExpiresByType text/javascript "access plus 2 years"
ExpiresByType application/x-javascript "access plus 2 years"
</IfModule>
DirectoryIndex index.php index.html



RewriteEngine On



# Turn off ETags

FileETag None

Header unset ETag



# Set Expires headers

ExpiresActive On

ExpiresDefault "access plus 1 years"

ExpiresByType text/html "access plus 1 second"

ExpiresByType image/gif "access plus 2592000 seconds"

ExpiresByType image/jpeg "access plus 2592000 seconds"

ExpiresByType image/jpg "access plus 2592000 seconds"

ExpiresByType image/png "access plus 2592000 seconds"

ExpiresByType image/x-icon "access plus 2592000 seconds"

ExpiresByType text/css "access plus 604800 seconds"

ExpiresByType text/javascript "access plus 604800 seconds"

ExpiresByType application/x-javascript "access plus 604800 seconds"



# Remove Last-Modified header

Header unset Last-Modified



<IfModule mod_rewrite.c>



<FilesMatch "\.(bmp|css|flv|gif|ico|jpg|jpeg|js|pdf|png|svg|swf|tif|tiff)$">

       Header set Last-Modified "Tue, 31 Aug 2010 00:00:00 GMT"

</FilesMatch>


SetOutputFilter DEFLATE



RewriteEngine On
########## Begin - 301 Redirect
#
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]+/)*(index|home)\.html?\ HTTP/
RewriteRule ^(([^/]+/)*)(index|home)\.html?$ http://www.s1r101.com/$1 [R=301,L]
#
RewriteCond %{THE_REQUEST} !^POST
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]+/)*index\.php\ HTTP/
RewriteCond %{SERVER_PORT}>s ^(443>(s)|[0-9]+>s)$
RewriteRule ^(([^/]+/)*)index\.php$ http%2://www.s1r101.com/$1 [R=301,L]
#
RewriteCond %{HTTP_HOST} !^(www\.s1r101\.com)?$
RewriteRule (.*) http://www.s1r101.com/$1 [R=301,L]
#
##
# @version        $Id: htaccess.txt 21101 2011-04-07 15:47:33Z dextercowley $
# @package        Joomla
# @copyright    Copyright (C) 2005 - 2011 Open Source Matters. All rights reserved.
# @license        GNU General Public License version 2 or later; see LICENSE.txt
##

##
# 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 +FollowSymLinks

## 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!
#
# Block out any script trying to base64_encode data within the URL.
RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]
# Block out any script that includes a <script> tag in URL.
RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%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})
# Return 403 Forbidden header and show the content of the root homepage
RewriteRule .* index.php [F]
#
## End - Rewrite rules to block out some common exploits.

## Begin - Custom redirects
#
# If you need to redirect some pages, or set a canonical non-www to
# www redirect (or vice versa), place that code here. Ensure those
# redirects use the correct RewriteRule syntax and the [R=301,L] flags.
#
## End - Custom redirects

##
# 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.
#
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
#
# If the requested path and file is not /index.php and the request
# has not already been internally rewritten to the index.php script
RewriteCond %{REQUEST_URI} !^/index\.php
# and the request is for something within the component folder,
# or for the site root, or for an extensionless URL, or the
# requested URL ends with one of the listed extensions
RewriteCond %{REQUEST_URI} /component/|(/[^.]*|\.(php|html?|feed|pdf|vcf|raw))$ [NC]
# and the requested path and file doesn't directly match a physical file
RewriteCond %{REQUEST_FILENAME} !-f
# and the requested path and file doesn't directly match a physical folder
RewriteCond %{REQUEST_FILENAME} !-d
# internally rewrite the request to the index.php script
RewriteRule .* index.php [L]
#
## End - Joomla! core SEF Section.

4 افزوونه فشرده ساز css نصب کن سرچ کن و بهترین رو انتخاب کن!

5در سایت جی تی متریکس Optimize images تصاویر بهینه رو جایگزین کن و نرم افزار FILEminimizer Pictures دانلود کن و تصاویر قالب و سایتتو کم کن بهت قول سایت 600kb و حتی کمتر رو میدم!

6دوست داشتی پلاگین lazy loader رو هم دانلود و فعالش کن

ویرایش شده در توسط s1r101

Share this post


Link to post
Share on other sites

تعویض هاستینگ هم میتونه ه سرعت لود سایتتون کمک کنه سرور اگه لایت اسپید و اینا داشته باشه خیلی به سرعت میتونه کمک کنه

Share this post


Link to post
Share on other sites

IZE=6]3 [/size]برو به هاست خودت و فایل htaccess.txt به htaccess. تغییر نام بده

بعد تو فایل htaccess همه رو پاک کن کدی که زیر قرار میدم قرار بده فقط یادت باشه به جای s1r101.com سایت خودتو بنویسی این کد تو سئو هم خیلی کمکت میکنه!

AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript

SetOutputFilter DEFLATE

<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType text/html "access plus 1 seconds"
ExpiresByType image/gif "access plus 2 days"
ExpiresByType image/jpeg "access plus 2 years"
ExpiresByType image/png "access plus 3 years"
ExpiresByType text/css "access plus 2 years"
ExpiresByType text/javascript "access plus 2 years"
ExpiresByType application/x-javascript "access plus 2 years"
</IfModule>
DirectoryIndex index.php index.html



RewriteEngine On



# Turn off ETags

FileETag None

Header unset ETag



# Set Expires headers

ExpiresActive On

ExpiresDefault "access plus 1 years"

ExpiresByType text/html "access plus 1 second"

ExpiresByType image/gif "access plus 2592000 seconds"

ExpiresByType image/jpeg "access plus 2592000 seconds"

ExpiresByType image/jpg "access plus 2592000 seconds"

ExpiresByType image/png "access plus 2592000 seconds"

ExpiresByType image/x-icon "access plus 2592000 seconds"

ExpiresByType text/css "access plus 604800 seconds"

ExpiresByType text/javascript "access plus 604800 seconds"

ExpiresByType application/x-javascript "access plus 604800 seconds"



# Remove Last-Modified header

Header unset Last-Modified



<IfModule mod_rewrite.c>



<FilesMatch "\.(bmp|css|flv|gif|ico|jpg|jpeg|js|pdf|png|svg|swf|tif|tiff)$">

       Header set Last-Modified "Tue, 31 Aug 2010 00:00:00 GMT"

</FilesMatch>


SetOutputFilter DEFLATE



RewriteEngine On
########## Begin - 301 Redirect
#
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]+/)*(index|home)\.html?\ HTTP/
RewriteRule ^(([^/]+/)*)(index|home)\.html?$ http://www.s1r101.com/$1 [R=301,L]
#
RewriteCond %{THE_REQUEST} !^POST
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]+/)*index\.php\ HTTP/
RewriteCond %{SERVER_PORT}>s ^(443>(s)|[0-9]+>s)$
RewriteRule ^(([^/]+/)*)index\.php$ http%2://www.s1r101.com/$1 [R=301,L]
#
RewriteCond %{HTTP_HOST} !^(www\.s1r101\.com)?$
RewriteRule (.*) http://www.s1r101.com/$1 [R=301,L]
#
##
# @version        $Id: htaccess.txt 21101 2011-04-07 15:47:33Z dextercowley $
# @package        Joomla
# @copyright    Copyright (C) 2005 - 2011 Open Source Matters. All rights reserved.
# @license        GNU General Public License version 2 or later; see LICENSE.txt
##

##
# 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 +FollowSymLinks

## 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!
#
# Block out any script trying to base64_encode data within the URL.
RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]
# Block out any script that includes a <script> tag in URL.
RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%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})
# Return 403 Forbidden header and show the content of the root homepage
RewriteRule .* index.php [F]
#
## End - Rewrite rules to block out some common exploits.

## Begin - Custom redirects
#
# If you need to redirect some pages, or set a canonical non-www to
# www redirect (or vice versa), place that code here. Ensure those
# redirects use the correct RewriteRule syntax and the [R=301,L] flags.
#
## End - Custom redirects

##
# 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.
#
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
#
# If the requested path and file is not /index.php and the request
# has not already been internally rewritten to the index.php script
RewriteCond %{REQUEST_URI} !^/index\.php
# and the request is for something within the component folder,
# or for the site root, or for an extensionless URL, or the
# requested URL ends with one of the listed extensions
RewriteCond %{REQUEST_URI} /component/|(/[^.]*|\.(php|html?|feed|pdf|vcf|raw))$ [NC]
# and the requested path and file doesn't directly match a physical file
RewriteCond %{REQUEST_FILENAME} !-f
# and the requested path and file doesn't directly match a physical folder
RewriteCond %{REQUEST_FILENAME} !-d
# internally rewrite the request to the index.php script
RewriteRule .* index.php [L]
#
## End - Joomla! core SEF Section.

4 افزوونه فشرده ساز css نصب کن سرچ کن و بهترین رو انتخاب کن!

5در سایت جی تی متریکس Optimize images تصاویر بهینه رو جایگزین کن و نرم افزار FILEminimizer Pictures دانلود کن و تصاویر قالب و سایتتو کم کن بهت قول سایت 600kb و حتی کمتر رو میدم!

6دوست داشتی پلاگین lazy loader رو هم دانلود و فعالش کن

اینی که شما گفتید تغییر htacsess بعد از تغییر باید فایل htacsess.txt را حذف کرد؟

بعد از وارد کردن این کدها به .htacsessخطای internal server میده

لطفا راهنمایی کنید

Share this post


Link to post
Share on other sites

نه دوست عزیز من نگفتم که حذف کنید گفتم تغییر نام بدین

بعدشم امکان نداره خراب باشه همین الان همین کد در سایت من فعاله

احتمالا کد ها رو درست جایگزین نمیکنید!

شما به جای s1r101.com اسم سایتت بزار

یادت باشه فقط این قسمتش به این صورته

www\.s1r101\.com

که دقبقا مثل این حالت ویرایش کن و تغییرش نده استایل رو!

ویرایش شده در توسط s1r101

Share this post


Link to post
Share on other sites

من سئو رو فعال کردم مطالب سایتم باز نشدن و ارور not found دادن!!!

ناگفته نماند که من الان سایتم حجمش از 300 هم کمتره!!

مراحل 1و3 رو انجام دادم سرعت 1% کاهش داشت!! افزونه فشرده سازی سی اس اس نصب کردم منوم بهم ریخت!:(

توی سایت http://www.gidnetwork.com/tools/gzip-test.php بررسی کردم، 75% فشرده شده اما سرعت کم شده! چرا؟!

ویرایش شده در توسط mahii

Share this post


Link to post
Share on other sites
سلام، من میخوام سرعت لود سایتم بره بالا، با اینکه مطلب خاصی نداره اما کنده،

پدیدگان تنکابن

توی سایت getmetrix سرعت 23% بود که فکر نمیکنم خوب باشه، من قالبم رو خودم طراحی کردم،توی کدهای optimize verison هم نمیدونم باید چه تغییراتی بدم تا سرعت بره بالا، فقط اون کدی که برای کل قالب بود رو جایگزین کردم که تاثیری نداشت!

دوست عزیز اولین کار اینه که سعی کنی عکسهات رو کم حجم کنی و تا میتونی از عکس در صفحه اول استفاده نکنی

حجم عکسهای صفحه اولت =

http://tonekaplot.ir/templates/edu-templat/images/Untitled.jpg = 35kb

http://tonekaplot.ir/images/slide/u-1.jpg = 27 kb

و ....

پیشنهاد من بعنوان طراح اینه که بجای رنگ قرمز بگ گراندت یک عکس کوچیک بصورت کاشی مانند بزاری که نمای بهتری به سایت بده

و کدهای سایتت رو بهینه سازی و فشرده کنی

Share this post


Link to post
Share on other sites
دوست عزیز اولین کار اینه که سعی کنی عکسهات رو کم حجم کنی و تا میتونی از عکس در صفحه اول استفاده نکنی

حجم عکسهای صفحه اولت =

http://tonekaplot.ir/templates/edu-templat/images/Untitled.jpg = 35kb

http://tonekaplot.ir/images/slide/u-1.jpg = 27 kb

و ....

پیشنهاد من بعنوان طراح اینه که بجای رنگ قرمز بگ گراندت یک عکس کوچیک بصورت کاشی مانند بزاری که نمای بهتری به سایت بده

و کدهای سایتت رو بهینه سازی و فشرده کنی

همونطور که گفتم من کدهام 75% فشرده شده! اما در سرعت تاثیری حاصل نشد! عکس ها رو که دوستان میگفتن حجمش خوبه! یعنی اگه یه عکس بذارم به عنوان بک گروند در سرعت تاثیر داره؟!

Share this post


Link to post
Share on other sites

دوست عزیز حجم عکسها تاثیر بسیاری در سرعت لود سایت میگذاره (تجربه شخصی)

استفاده از جی کوئری ها هم بسیار تاثیر گذاره

Share this post


Link to post
Share on other sites

سلام

با انجام راهکار های زیر میتونید سرعت سایتتون رو به طور قابل ملاحظه ای افزایش بدید

استفاده از آموزش زیر برا بهبود بهینه سازی سایت

آموزش قدم به قدم بالا بردن PageSpeed با سایت GTMetrix

استفاده از پلاگین و کد زیر که باید داخل پوشا اچ تی اکسس جایگزاری کنید

انجمن جوملا ایران

انجمن جوملا ایران

با انجام این سه مرحله سرعت سایت شما بهتر میشود

Share this post


Link to post
Share on other sites
این کارهایی که میگم بکن هم برای سئو سایتت خوبه هم سرعتت!

1 شما gzip فعال کن حتما!

برای فعال کردنش به این مسیر برو

سایت/تنظیمات کلی/سرور/فشرده سازی Gzip/بله

2 بیا این مسیر

سایت/تنظیمات کلی/

در سمت چپ تنظیمات SEO این گزینه ها رو فعال کن

استفاده از mod_rewrite

افزودن پسوند به آدرس ها

3 برو به هاست خودت و فایل htaccess.txt به htaccess. تغییر نام بده

بعد تو فایل htaccess همه رو پاک کن کدی که زیر قرار میدم قرار بده فقط یادت باشه به جای s1r101.com سایت خودتو بنویسی این کد تو سئو هم خیلی کمکت میکنه!

AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript

SetOutputFilter DEFLATE

<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType text/html "access plus 1 seconds"
ExpiresByType image/gif "access plus 2 days"
ExpiresByType image/jpeg "access plus 2 years"
ExpiresByType image/png "access plus 3 years"
ExpiresByType text/css "access plus 2 years"
ExpiresByType text/javascript "access plus 2 years"
ExpiresByType application/x-javascript "access plus 2 years"
</IfModule>
DirectoryIndex index.php index.html



RewriteEngine On



# Turn off ETags

FileETag None

Header unset ETag



# Set Expires headers

ExpiresActive On

ExpiresDefault "access plus 1 years"

ExpiresByType text/html "access plus 1 second"

ExpiresByType image/gif "access plus 2592000 seconds"

ExpiresByType image/jpeg "access plus 2592000 seconds"

ExpiresByType image/jpg "access plus 2592000 seconds"

ExpiresByType image/png "access plus 2592000 seconds"

ExpiresByType image/x-icon "access plus 2592000 seconds"

ExpiresByType text/css "access plus 604800 seconds"

ExpiresByType text/javascript "access plus 604800 seconds"

ExpiresByType application/x-javascript "access plus 604800 seconds"



# Remove Last-Modified header

Header unset Last-Modified



<IfModule mod_rewrite.c>



<FilesMatch "\.(bmp|css|flv|gif|ico|jpg|jpeg|js|pdf|png|svg|swf|tif|tiff)$">

       Header set Last-Modified "Tue, 31 Aug 2010 00:00:00 GMT"

</FilesMatch>


SetOutputFilter DEFLATE



RewriteEngine On
########## Begin - 301 Redirect
#
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]+/)*(index|home)\.html?\ HTTP/
RewriteRule ^(([^/]+/)*)(index|home)\.html?$ http://www.s1r101.com/$1 [R=301,L]
#
RewriteCond %{THE_REQUEST} !^POST
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]+/)*index\.php\ HTTP/
RewriteCond %{SERVER_PORT}>s ^(443>(s)|[0-9]+>s)$
RewriteRule ^(([^/]+/)*)index\.php$ http%2://www.s1r101.com/$1 [R=301,L]
#
RewriteCond %{HTTP_HOST} !^(www\.s1r101\.com)?$
RewriteRule (.*) http://www.s1r101.com/$1 [R=301,L]
#
##
# @version        $Id: htaccess.txt 21101 2011-04-07 15:47:33Z dextercowley $
# @package        Joomla
# @copyright    Copyright (C) 2005 - 2011 Open Source Matters. All rights reserved.
# @license        GNU General Public License version 2 or later; see LICENSE.txt
##

##
# 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 +FollowSymLinks

## 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!
#
# Block out any script trying to base64_encode data within the URL.
RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]
# Block out any script that includes a <script> tag in URL.
RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%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})
# Return 403 Forbidden header and show the content of the root homepage
RewriteRule .* index.php [F]
#
## End - Rewrite rules to block out some common exploits.

## Begin - Custom redirects
#
# If you need to redirect some pages, or set a canonical non-www to
# www redirect (or vice versa), place that code here. Ensure those
# redirects use the correct RewriteRule syntax and the [R=301,L] flags.
#
## End - Custom redirects

##
# 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.
#
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
#
# If the requested path and file is not /index.php and the request
# has not already been internally rewritten to the index.php script
RewriteCond %{REQUEST_URI} !^/index\.php
# and the request is for something within the component folder,
# or for the site root, or for an extensionless URL, or the
# requested URL ends with one of the listed extensions
RewriteCond %{REQUEST_URI} /component/|(/[^.]*|\.(php|html?|feed|pdf|vcf|raw))$ [NC]
# and the requested path and file doesn't directly match a physical file
RewriteCond %{REQUEST_FILENAME} !-f
# and the requested path and file doesn't directly match a physical folder
RewriteCond %{REQUEST_FILENAME} !-d
# internally rewrite the request to the index.php script
RewriteRule .* index.php [L]
#
## End - Joomla! core SEF Section.

سلام

اولا

تو هاست من دو فایل htaccess.txt وhtaccess.

بعدگفته بودید

تو فایل همه رو پاک کن کدی که زیر قرار میدم قرار بده فقط یادت باشه به جای s1r101.com سایت خودتو بنویسی این کد تو سئو هم خیلی کمکت میکنه!

تواین کدها سه تا ازاینهاs1r101.com هست کدومش رو تغییر بدم

Share this post


Link to post
Share on other sites

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

خوب دقت کن دوست من 4 تا S1R101داریم!


RewriteRule ^(([^/]+/)*)(index|home)\.html?$ http://www.s1r101.com/$1 [R=301,L] # RewriteCond %{THE_REQUEST} !^POST RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]+/)*index\.php\ HTTP/ RewriteCond %{SERVER_PORT}>s ^(443>(s)|[0-9]+>s)$ RewriteRule ^(([^/]+/)*)index\.php$ http%2://www.s1r101.com/$1 [R=301,L] # RewriteCond %{HTTP_HOST} !^(www\.s1r101\.com)?$ RewriteRule (.*) http://www.s1r101.com/$1 [R=301,L]

Share this post


Link to post
Share on other sites

دوستان من 75% فشرده کردم با همون gzip ، عکس ها و مطالب اضافی رو پاک کردم، اما سرعت برعکس اومده پایینتر:(

Share this post


Link to post
Share on other sites

خب شما توی فایل .htacsess باید دنبال اون عبارت باشید و با آدرس دامنه خودتون عوض کنید

Share this post


Link to post
Share on other sites
خب شما توی فایل .htacsess باید دنبال اون عبارت باشید و با آدرس دامنه خودتون عوض کنید

کلا هر چی تو فایل .htacsess بود را حذف کردم ولی درست نشد

Share this post


Link to post
Share on other sites
خب شما توی فایل .htacsess باید دنبال اون عبارت باشید و با آدرس دامنه خودتون عوض کنید

کلا هر چی تو فایل .htacsess بود را حذف کردم ولی درست نشد

الان من چیکار کنم درست بشه

Share this post


Link to post
Share on other sites

دوست عزیز یه فایل htaccess دست نخورده رو از تو یه بسته ی نصبی جوملا جایگزین فایل htaccess سایت خودتون کنید

Share this post


Link to post
Share on other sites

برای ارسال نظر یک حساب کاربری ایجاد کنید یا وارد حساب خود شوید

برای اینکه بتوانید نظر ارسال کنید نیاز دارید که کاربر سایت شوید

ایجاد یک حساب کاربری

برای حساب کاربری جدید در انجمن ما ثبت نام کنید. عضویت خیلی ساده است !


ثبت نام یک حساب کاربری جدید

ورود به حساب کاربری

دارای حساب کاربری هستید؟ از اینجا وارد شوید


ورود به حساب کاربری