ebrahim525
06-30-2009, 08:51 AM
توی فایل htaccss
این بود
##
# @version $Id: htaccess.txt,v 1.1 2005/07/22 01:51:57 eddieajau Exp $
# @package Mambo
# @copyright (C) 2000 - 2005 Miro International Pty Ltd
# @license <b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b> www . gnu.org/copyleft/gpl.html GNU/GPL
# Mambo is Free Software
##
#
# mod_rewrite in use
#
RewriteEngine On
# Uncomment following line if your webserver's URL
# is not directly related to physical file paths.
# Update YourMamboDirectory (just / for root)
# RewriteBase /YourMamboDirectory
#
# Rules
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php
با این جایگزینش کردم
##
# @package Mambo
# @author Mambo Foundation Inc see README.php
# @copyright Mambo Foundation Inc.
# See COPYRIGHT.php for copyright notices and details.
# @license <b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b> www . gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
# Mambo is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; version 2 of the License.
##
#
# mod_rewrite in use
#
RewriteEngine On
# Uncomment following line if your webserver's URL
# is not directly related to physical file paths.
# Update YourMamboDirectory (just / for root)
# RewriteBase /YourMamboDirectory
#
# Rules
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^content/(.*) index3.php
RewriteRule ^component/(.*) index3.php
RewriteRule ^mos/(.*) index3.php
حالا اروره 404 میده ولی صفحه اول رو مشکل نداره.چیکار کنم؟
برای یکتا شدن آدرس بایداین رو دقیقا کجا بذارم
RewriteEngine On
RewriteCond %{<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b>} !^<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b>$ [NC]
RewriteRule ^(.*) <b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b> <b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b> yoursite.com/$1 [QSA,L,R=301]
اگه تغییرات دیگه ای فکر میکنید نیازه چیه؟
این بود
##
# @version $Id: htaccess.txt,v 1.1 2005/07/22 01:51:57 eddieajau Exp $
# @package Mambo
# @copyright (C) 2000 - 2005 Miro International Pty Ltd
# @license <b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b> www . gnu.org/copyleft/gpl.html GNU/GPL
# Mambo is Free Software
##
#
# mod_rewrite in use
#
RewriteEngine On
# Uncomment following line if your webserver's URL
# is not directly related to physical file paths.
# Update YourMamboDirectory (just / for root)
# RewriteBase /YourMamboDirectory
#
# Rules
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php
با این جایگزینش کردم
##
# @package Mambo
# @author Mambo Foundation Inc see README.php
# @copyright Mambo Foundation Inc.
# See COPYRIGHT.php for copyright notices and details.
# @license <b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b> www . gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
# Mambo is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; version 2 of the License.
##
#
# mod_rewrite in use
#
RewriteEngine On
# Uncomment following line if your webserver's URL
# is not directly related to physical file paths.
# Update YourMamboDirectory (just / for root)
# RewriteBase /YourMamboDirectory
#
# Rules
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^content/(.*) index3.php
RewriteRule ^component/(.*) index3.php
RewriteRule ^mos/(.*) index3.php
حالا اروره 404 میده ولی صفحه اول رو مشکل نداره.چیکار کنم؟
برای یکتا شدن آدرس بایداین رو دقیقا کجا بذارم
RewriteEngine On
RewriteCond %{<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b>} !^<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b>$ [NC]
RewriteRule ^(.*) <b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b> <b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b> yoursite.com/$1 [QSA,L,R=301]
اگه تغییرات دیگه ای فکر میکنید نیازه چیه؟