-
modrewrite
با سلام
من از sef advance استفاده میکنم.
الان فایل htaccess من اینجوریه :
Options +FollowSymLinks
RewriteEngine On
#RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php
# Block out any script trying to set a mosConfig value through the URL
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]
و لینک اینجوری میشه
[مهمان/کاربر گرامی برای دیدن لینک ها ابتدا باید عضو سایت شوید و لاگین کنید برای ثبت نام اینجا کلیک کنید]
چه کار کنم که اینجوری نشه و لینک ها رو بهتر نشون بده مثل خود مامبولرن
ممنون
جهت مشاهده لینک ها باید ثبت نام کنید یا لاگین کنید.
-
-
07-19-2007 12:47 PM
# ADS
تبلیغات در جوملا فارسی
-
پاسخ : modrewrite
توی کامپوننت میتونید تعیین کنید عناوین لینک ها رو از "نام" بخونه یا از "عنوان"
از هر کدوم که قراره بخونه باید اون رو انگلیسی بنویسید .. مثلا عنوان یک مطلب
ضمنا ما از extension های null شده پشتیبانی نمی کنیم!
جهت مشاهده لینک ها باید ثبت نام کنید یا لاگین کنید.
-
علاقه مندی ها (Bookmarks)