amirhacker

..::نیاز به کمک فوری فوری::..

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

با سلام و درود

به گفته یکی از دوستان یک سری تغییرات در فایل htaccess دادم بعد از این تغییرات با این پیام مواجه شده ام و دیگه سایت بالا نمیاد

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

مشکل فعلا حل شد

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

Share this post


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

اگر دوباره این مشکل پیش آمد میتوانید فایل htaccess.txt را از یک بسته ی نصبی دیگر جایگزین فایل htaccess خودتان کنید

موفق باشید

Share this post


Link to post
Share on other sites

دوست عزیز شما بد تغییرات دادید خوب!

فایل اصلی رو از نسخه خام جایگزین کنید و فایل تغییر داده شده رو پاک کنید کم کاری خودتون رو تقصیر من نیاندازید!

Share this post


Link to post
Share on other sites

ّرای تغییرات باید اول تغییر نام بدین htaccess.txt به htaccess. وبعد تغییرات رو اعمال کنید واگر مشکلی پیش اومد تغییرات رو بازگردانی کنید؟

کد هایی که رو که مشکل دارن رو قرار بدین تا راهنماییتون کنیم

Share this post


Link to post
Share on other sites

دوست عزیز s1r101 من که نگفتم تقصیر حضرت عالیه که . اصلا نامی از شما نبردم

حالا به هر حال من با این خطا مواجه شده ام حتی با بازگرداندن تغییرات

Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.12 Safari/534.24

لطفا استاید ورفقا راهنمایی کنند

ممنون

Share this post


Link to post
Share on other sites

دوستان پس از سعی و خطا متوجه شدم مشکل مربوط به زمانی که mod_rewrite زا فعال می کنم

دلیلش میتونه چی باشه؟

از افزونه rsseo استفاده می کنم

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

ممنون دوست عزیز

کدی که یکی از رفقا قرار داده بود اینه

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.

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

اگه میشه راهنمایی بفرمایید

Share this post


Link to post
Share on other sites

این یه نسخه از htaccess اصلی بدون تغییر هست شما باید ابتدا فقط این کدها رو تو htaccess بزارید

##
# @package		Joomla
# @copyright	Copyright (C) 2005 - 2012 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.

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

Share this post


Link to post
Share on other sites

من قصد دارم که سرعت لود سایت را افزایش بدهم

آیا این کد کمکی می کنه؟

و اینکه باید حتما htacsee.txt را به htacsess. تغییر بدهم یا نیازی نیست

Share this post


Link to post
Share on other sites

داداش باید برای سرعت لود سایت کدهای سایت رو بهینه کنی تا سایت و سئو بهتری داشته باشی/ شما بعد از تغییر نام htacsee.txt به htacsess. به مدیریت سایت --->تنظیمات کلی برید و گزینه تنظیمات سئو را تمام گزینه هاشو روی ok قرار بدین و از قسمت سرور گزینه فشرده سازی Gzip رو فعال کن و مهمتر از همه باید عکس های استفاده شده در سایت و ماژولهای منتسب به صفحاتت رو که استفاده نمیکنی غیر فعال کنی

مثلا گزینه google + و آمارگیرها خودشون باعث کند شدن سایت میشن و تا زمانی که رتبه ایران و جهانت زیاد نشده استفاده نکن تا رتبه بهتری پیدا کنی. بعضی از افزونه ها هم لینک به سایتشون میدن که موقع لود شدن سایتت اگر از موزیلا استفاده میکنی میتونی اسم سایتشونو ببینی و حذفشون کنی

Share this post


Link to post
Share on other sites

من و قتی که به .htacsess تغییر دادم و محتویات 3 پست قبل را در آن ذخیره کردم با خطای زیر مواجه شدم

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@nabatemohamad.ir and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

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

Share this post


Link to post
Share on other sites
من و قتی که به .htacsess تغییر دادم و محتویات 3 پست قبل را در آن ذخیره کردم با خطای زیر مواجه شدم

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@nabatemohamad.ir and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

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

وقتی تغییربه .htacsess دادای از مدیریت جوملا گزینه تنظیمات سئو رو همه رو ok کردی ؟

Share this post


Link to post
Share on other sites

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

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

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

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


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

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

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


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