توجه ! این یک نسخه آرشیو شده میباشد و در این حالت شما عکسی را مشاهده نمیکنید برای مشاهده کامل متن و عکسها بر روی لینک مقابل کلیک کنید : ورود به index.html به جای index.php
abolfazllotfi
03-16-2010, 05:54 AM
ظسلام .توی یکی از سایت ها خوندم که html بر php مقدم تر هست.من یک صفحه جدید ساختم(beheshtebarin.ir/index.html
که از داخل اون بازدیدکننده با کلیک بر روی اون میتونه وارد صفحه اصلی)index.php بشه ولی الان که اینکارو انجام دادم با نوشتن آدرس سایت باز همون index.php صفحه اصلی هستش.اگر ممکن هست بهم کمک کنید تا index.html رو بذارم روی صفحه اول.ممنونم.منتظر پاسخ شما هستم. O0
** هایپرلینک اصلاح شد.
محمد محسنی
03-16-2010, 06:07 AM
با سلام
این بستگی به تنظیمات سرور داره که کدوم فایل را مقدم بر بقیه بدوند
پیروز باشید
abolfazllotfi
03-16-2010, 06:13 AM
چطور میتونم تنظیمات سرور رو عوض کنم
VistaPanel version:
2.4.0 RC1
linux
؟
محمد محسنی
03-16-2010, 06:17 AM
سلام
1-این کار را مدیر سرور باید انجامدهید
(آیا شما مدیر سرور هستید؟)
در ضمن کنترل پنل هاست شما چیست؟
Cpnel
direct admin
..
abolfazllotfi
03-16-2010, 06:26 AM
من مدیر سی پنل هستم.
cpanel
DirectoryIndex index.php index.cgi index.pl default.htm
این کد رو هم یه یا از پیدا کردم.ولی نمیدونم استفادش چطوریه
باید در داخل htacces قرار داد؟
** سه پست شما یکی شد.
سلام
لطفا قوانین رو به دقت مطالعه کنید:
42) پاسخگویی به سوالات مستلزم صرف وقت و بررسی است. برای دریافت پاسخ صبور باشید و از ارسال پست های پشت سر هم به جهت بالا آوردن تاپیک خودداری کنید.
این کد رو در فایل htaccess قرار بدید:
DirectoryIndex index.html index.php
ارسالهای اضافی حذف شد.
یا علی
abolfazllotfi
03-16-2010, 06:58 AM
دوست عزیز عمل نکرد
بالاخره از VistaPanel استفاده می کنید یا cPanel ؟
محتویات فایل htaccess رو اینجا به صورت کد قرار بدید.
abolfazllotfi
03-16-2010, 07:16 AM
##
# @version $Id: htaccess.txt 13415 2009-11-03 15:53:25Z ian $
# @package Joomla
# @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
# @license <b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b> 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 +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!
#
## 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} !^/index30.php
RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$ [NC]
RewriteRule (.*) index.php
RewriteRule .* - [E=<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b>{<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b>},L]
#
########## End - Joomla! core SEF Section
########## your main page code here
#
DirectoryIndex index.html index.php
#
########## End - your main page code here
سلام دوست عزیز من چند روزه که صبر کردم اما جوابی نگرفتم هنوز. >:(
** دو پست شما یکی شد.
سلام
مشکل از کدهای htaccess نیست. من همین کدها رو تست کردم و مشکلی ندیدم.
من دو سوال از شما پرسیدم، اما پاسخ یکی از سوالات رو دریافت نکردم.
بهرحال بهتره این موضوع رو با پشتیبانی سرورتون در میون بگذارید.
یا علی
vBulletin® v4.2.5, Copyright ©2000-2026, Jelsoft Enterprises Ltd.