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

نسخة كاملة: مشكلة في روابط هتمل! - ارجوا الحل
أنت حالياً تتصفح نسخة خفيفة من المنتدى . مشاهدة نسخة كاملة مع جميع الأشكال الجمالية.
الصفحات: 1 2
اتفضل حضرتك استبدل محتوى ملف الهتكس بتاعك بالتالى مع تغير اسم الموقع secarab.com و http://www.secarab.com الى موقعك

إقتباس :RewriteEngine on

RewriteCond %{HTTP_HOST} ^secarab.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.secarab.com$
RewriteRule ^forums\/?$ "http\:\/\/www\.secarab\.com\/" [R=301,L]

RewriteCond %{HTTP_HOST} ^secarab.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.secarab.com$
RewriteRule ^\.phforums\/forumdisplayp$ "http\:\/\/www\.secarab\.com\/forumdisplay\.php\?fid\=3" [R=301,L]

RewriteCond %{HTTP_HOST} ^secarab.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.secarab.com$
RewriteRule ^forums\/forumdisplay\.php$ "http\:\/\/www\.secarab\.com\/forumdisplay\.php\?fid\=27" [R=301,L]

RewriteCond %{HTTP_HOST} ^secarab.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.secarab.com$
RewriteRule ^forums\/showthread\.php$ "http\:\/\/www\.secarab\.com\/showthread\.php\?tid\=12" [R=301,L]
RewriteEngine on
RewriteRule ^forum-([0-9]+)\.html$ forumdisplay.php?fid=$1 [L,QSA]
RewriteRule ^forum-([0-9]+)-page-([0-9]+)\.html$ forumdisplay.php?fid=$1&page=$2 [L,QSA]

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

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

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

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

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

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


RewriteRule ^tag/([^/]+)$ tags.php?tag=$1 [L,QSA]
RewriteRule ^tag/([^/]+)/([^-/]+)$ tags.php?tag=$1&page=$2 [L,QSA]
RewriteRule ^tag/$ tags.php [L,QSA]
ExpiresActive On
ExpiresByType image/gif "access 1 week"
ExpiresByType image/jpeg "access 1 week"
ExpiresByType image/png "access 1 week"
ExpiresByType text/css "access 1 week"
ExpiresByType application/x-shockwave-flash "access 1 week"
ExpiresByType application/x-javascript "access 1 week
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(http://www.)?secarab.com(/)?.*$ [NC]
RewriteRule .(gif|GIF|jpg|zip|ZIP|rar|RAR|JPG|png|PNG)$ http://www.secarab.com/up/uploads/01.jpg [L,NC]

RewriteEngine On
RewriteCond %{HTTP_HOST} ^secarab.com [NC]
RewriteRule ^(.*)$ http://www.secarab.com/$1 [L,R=301]

<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>



وياريت تتاكد انك مفعل خيار روابط html من لوحة تحكم منتداك


وردلى بالنتيجة وان شاء الله تعمل معك
لقد قمت برفعه مع استبدال روابط secarab.com بروابطي وتفعيل html من المنتدى ولكن للاسف الموقع اصبح لا يعمل!,

شكرآ اخي تعبتك معي
قم بعمل ملف هتكس فاضى اخويا الفاضل واعطيه التصريح 777 وارفعه وقم بتعطيل روابط html ثم قم بتفعيلها مرة اخرى لتقوم بالكتابة التلقائية فى ملف الهتكس وردلى بالنتيجة
(04-21-2012 03:47 PM)dr.wolf كتب : [ -> ]قم بعمل ملف هتكس فاضى اخويا الفاضل واعطيه التصريح 777 وارفعه وقم بتعطيل روابط html ثم قم بتفعيلها مرة اخرى لتقوم بالكتابة التلقائية فى ملف الهتكس وردلى بالنتيجة

للاسف نفس المشكلة,

لكن المشكلة عندما اضع هذا الكود لتحويل من http://www.vip2000.tk والى http://vip2000.tk في ملف الهاتكس تاتي هذه المشكلة:

وهذا الكود:

PHP كود :
Options +FollowSymLinks 
RewriteEngine on
RewriteCond 
%{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^vip2000\.tk
RewriteRule 
(.*) http://vip2000.tk/$1 [R=301,L] 
ولكن عندما ازيله تذهب المشكلة!

وشكرآ لك
(04-21-2012 04:35 PM)Sky كتب : [ -> ]
(04-21-2012 03:47 PM)dr.wolf كتب : [ -> ]قم بعمل ملف هتكس فاضى اخويا الفاضل واعطيه التصريح 777 وارفعه وقم بتعطيل روابط html ثم قم بتفعيلها مرة اخرى لتقوم بالكتابة التلقائية فى ملف الهتكس وردلى بالنتيجة

للاسف نفس المشكلة,

لكن المشكلة عندما اضع هذا الكود لتحويل من http://www.vip2000.tk والى http://vip2000.tk في ملف الهاتكس تاتي هذه المشكلة:

وهذا الكود:

PHP كود :
Options +FollowSymLinks 
RewriteEngine on
RewriteCond 
%{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^vip2000\.tk
RewriteRule 
(.*) http://vip2000.tk/$1 [R=301,L] 
ولكن عندما ازيله تذهب المشكلة!

وشكرآ لك


المشكلة انك تعطى اكثر من امر مكرر فى ملف الهتكس لذا تحدث مشكلة

جرب ان تضع الكودت السابق بدون اول سطرين ليكون هكذا

إقتباس :RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^vip2000\.tk
RewriteRule (.*) http://vip2000.tk/$1 [R=301,L][/php]


بعد سطر RewriteEngine on الموجود اساسا فى ملف الهتكس
الصفحات: 1 2
روابط المرجعيات