سوق العرب | معهد سكيورتى العرب | وظائف خالية

نسخة كاملة: مشكلة في روابط هتمل! - ارجوا الحل
أنت حالياً تتصفح نسخة خفيفة من المنتدى . مشاهدة نسخة كاملة مع جميع الأشكال الجمالية.
الصفحات: 1 2
السلام عليكم ورحمة الله وبركاتة

انا حولت روابط المنتدى الى هتمل وتعمل بدون مشاكل !,

وفي نفس ملف htaccess وضعت كود لتحويل النطاق من http://www.vip2000.tk الى vip2000.tk وايضآ يعمل بدون مشاكل!,

لكن المشكلة هي عندما تضغط على هذا الرابط http://vip2000.tk/forum-2.html تبقى روابط الهتمل كما هي بدون مشكلة!, لكن اذا وضعت www للرابط http://www.vip2000.tk/forum-2.html فيقوم بتحويل الرابط الى php!
ويبقى هكذا http://vip2000.tk/forumdisplay.php?fid=2 !

لا اعلم لماذا!!!!!

بإنتظاركم وشكرآ
وعليكم السلام ورحمة الله وبركاته :

يجب عليك اخويا الفاضل ان تجعل روابط موقع تكتب بطريقة واحدة ب www او بدون www

ويتم ذلك من خلال ملف الهتكس ثم تدخل على ادوات مشرفين المواقع بجوجل لو انتا مسجل بها وتختار ان يبدا موقعك ب www او بدون www
اخي الكريم انا واضع كود في ملف الهتكس لتحويل الروابط من www والى غير www وكما ترى هنا اذا تضغط على هذا الرابط http://www.vip2000.tk سيحولك الى http://vip2000.tk بدون مشاكل!,

واذا تضغط على هذا الرابط http://vip2000.tk/forum-2.html ايضآ يعمل بدون مشاكل!,

ولكن اذا اضفت www الى الرابط هكذا http://www.vip2000.tk/forum-2.html سوف يقوم بتحويلك الى http://vip2000.tk/forumdisplay.php?fid=2 لماذا!!,

بمعنى اريد ان يكون تحويل الروابط مثل موقع http://www.secarab.com بدون مشاكل,

مثلا: اذا تضف www او بدون www http://www.secarab.com/thread-11691.html عمل بدون مشاكل!,

بإنتظار الحل,
وشكرآ لردك اخي الكريم
ياريت تضع لنا محتوى ملف الهتكس الخاص بموقعك اخويا وابشر باذن الله
(04-21-2012 02:23 PM)dr.wolf كتب : [ -> ]ياريت تضع لنا محتوى ملف الهتكس الخاص بموقعك اخويا وابشر باذن الله

تفضل اخي الكريم

PHP كود :
Options -MultiViews +FollowSymlinks -Indexes

#
# If mod_security is enabled, attempt to disable it.
# - Note, this will work on the majority of hosts but on
#   MediaTemple, it is known to cause random Internal Server
#   errors. For MediaTemple, please remove the block below
#
<IfModule mod_security.c>
    
# Turn off mod_security filtering.
    
SecFilterEngine Off

    
# The below probably isn't needed, but better safe than sorry.
    
SecFilterScanPOST Off
</IfModule>

#
# MyBB "search engine friendly" URL rewrites
# - Note, for these to work with MyBB please make sure you have
#   the setting enabled in the Admin CP and you have this file
#   named .htaccess
#
<IfModule mod_rewrite.c>
    
RewriteEngine on
    RewriteRule 
^forum-([0-9]+)\.htmlforumdisplay.php?fid=$[L,QSA]
    
RewriteRule ^forum-([0-9]+)-page-([0-9]+)\.htmlforumdisplay.php?fid=$1&page=$[L,QSA]

    
RewriteRule ^thread-([0-9]+)\.htmlshowthread.php?tid=$[L,QSA]
    
RewriteRule ^thread-([0-9]+)-page-([0-9]+)\.htmlshowthread.php?tid=$1&page=$[L,QSA]
    
RewriteRule ^thread-([0-9]+)-lastpost\.htmlshowthread.php?tid=$1&action=lastpost [L,QSA]
    
RewriteRule ^thread-([0-9]+)-nextnewest\.htmlshowthread.php?tid=$1&action=nextnewest [L,QSA]
    
RewriteRule ^thread-([0-9]+)-nextoldest\.htmlshowthread.php?tid=$1&action=nextoldest [L,QSA]
    
RewriteRule ^thread-([0-9]+)-newpost\.htmlshowthread.php?tid=$1&action=newpost [L,QSA]
    
RewriteRule ^thread-([0-9]+)-post-([0-9]+)\.htmlshowthread.php?tid=$1&pid=$[L,QSA]

    
RewriteRule ^post-([0-9]+)\.htmlshowthread.php?pid=$[L,QSA]

    
RewriteRule ^announcement-([0-9]+)\.htmlannouncements.php?aid=$[L,QSA]

    
RewriteRule ^user-([0-9]+)\.htmlmember.php?action=profile&uid=$[L,QSA]

    
RewriteRule ^calendar-([0-9]+)\.htmlcalendar.php?calendar=$[L,QSA]
    
RewriteRule ^calendar-([0-9]+)-year-([0-9]+)\.htmlcalendar.php?action=yearview&calendar=$1&year=$[L,QSA]
    
RewriteRule ^calendar-([0-9]+)-year-([0-9]+)-month-([0-9]+)\.htmlcalendar.php?calendar=$1&year=$2&month=$[L,QSA]
    
RewriteRule ^calendar-([0-9]+)-year-([0-9]+)-month-([0-9]+)-day-([0-9]+)\.htmlcalendar.php?action=dayview&calendar=$1&year=$2&month=$3&day=$[L,QSA]
    
RewriteRule ^calendar-([0-9]+)-week-(n?[0-9]+)\.htmlcalendar.php?action=weekview&calendar=$1&week=$[L,QSA]

    
RewriteRule ^event-([0-9]+)\.htmlcalendar.php?action=event&eid=$[L,QSA]

    <
IfModule mod_env.c>
        
SetEnv SEO_SUPPORT 1
    
</IfModule>
</
IfModule>

#
# If Apache is compiled with built in mod_deflade/GZIP support
# then GZIP Javascript, CSS, HTML and XML so they're sent to
# the client faster.
#
<IfModule mod_deflate.c>
    
AddOutputFilterByType DEFLATE application/javascript text/css text/html text/xml
</IfModule>

Options +FollowSymLinks 
RewriteEngine on
RewriteCond 
%{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^vip2000\.tk
RewriteRule 
(.*) http://vip2000.tk/$1 [R=301,L] 
الصفحات: 1 2
روابط المرجعيات