إشهار منتدى phpbb في محركات البحث..وتحديد رؤية من على الخط

النقاش العام حول phpBB2 ، يرجى عدم طلب الدعم الفني أو طرح المشاكل هنا.

المشرف: alhitary

صورة العضو الرمزية
رمال
عضو جديد
عضو جديد
مشاركات: 6
اشترك في: الأربعاء مايو 21, 2003 2:17 am

????? ????? phpbb ?? ?????? ?????..?????? ???? ?? ??? ????

مشاركةبواسطة رمال » الأربعاء نوفمبر 26, 2003 4:13 pm

??????? ?????..

???? ?? ????? phpbb ?????? ???? ??? ????? ??? ???????? ?? ??????? ?? ??.. ???????? ?????? ???? ?????? ???? ????? ????? ?????? ?? ??? ?????? ?????? ??????..

???? ????? ????? ????? ??? ????? ???? ??????? ?? php ??? html ??? ?? ????? ??????? ?? ????? ???? ???? ????? ????? ???????..

??????? ??????..

??? ?????? "?? ??? ????" ??????? ???? ????? ????? viewonline ?????? ????? ????? ???? ???? ??????? ??????? ?? ?????? ?? ??? ???? ???????? ???? ?????? ?? ??? ADMIN ???????? ????? ?? ???LESS ADMIN




صورة العضو الرمزية
رمال
عضو جديد
عضو جديد
مشاركات: 6
اشترك في: الأربعاء مايو 21, 2003 2:17 am

مشاركةبواسطة رمال » الأحد يناير 11, 2004 2:27 am

?????? ????? ??? ??? ??????? ??? ??? ????? ??? ???? ???? ??? ??? ??????? ???? ?????? ???? ????? ??????? phpbb ?? ?????? ??????..

?????????...???? ?? ???? ???????? ????? ??? ??? ???? ??????..

????? ????? ????? ????? ?? ???? ??? ???? ????? ?????.. ??????? ??????? ?????..!!! 8O 8O 8O 8O

AC
المؤسس
المؤسس
مشاركات: 1939
اشترك في: الجمعة مايو 17, 2002 7:32 am
مكان: السعودية
اتصال:

مشاركةبواسطة AC » الاثنين يناير 12, 2004 3:59 am

?????? ?????

?????????...???? ?? ???? ???????? ????? ??? ??? ???? ??????..


?? ??????...??? ??????? ??? ??? ?? ???? ????? :idea:

??? ?? ????? ??????? ?? ????? ???? ???? ????? ????? ???????..


??????? ??????? ??? ??? ???? ???phpBB ?? ?? ??? ??php ???? ????? ????Mime Types ????Apache Handlers

???? ??? CPanel ???? ??? ??????? .... ???? ??? ??? ????????...

??? ?? ????? ??? ??? ??? ??? ???phpBB

????? ?? ????? ?? ???? ??? ????? ?????? ???Mime Types ????Apache Handlers ???? ??????? ???? Safe_mode ????? ????? ??? ??

???? ??????? ??? ??php ??? phpsuxec ????? ?????? ??????? Apache Handlers ???? ???? ?? ?? ?? :roll:

??? ??? ??? ???phpBB ??? ?? ?? ???? ?????? ??????? ??? ????? ???????? ?? php ???? ????? ????? ?????????? ??????

Cpanel Documentation

Apache Documentation

php Documentation


?????? ??? ???? ????? ?? ?????? ???? ???? ?????? ??? ???..??? ?? ???? ?? ????? ????? ??? ?? ??????? ???????? ???? ??????? ????? ??? ??? ???????

????? ???? ????? ??? ???? ???????? phpBB ??? ?? ..????? ??? ??? ??? ???? ????phpBB ????? ?????? ??? ?????? :idea:

???? :)
لوكان الجهل رجلاً لقتلته

I Hate vBulletin

نِـثَـارٌ (مدونتي) | | وافــــر >> Wapher.Com || مُفيد.كوم >> MoFFed.Com

:idea: البريد والرسائل الخاصه لايعدان السبيل الامثل للدعم الفني :idea:

irc4arab
صُناع أريبيا
صُناع أريبيا
مشاركات: 123
اشترك في: الثلاثاء إبريل 29, 2003 12:49 pm
مكان: عـ الخليج ـروس
اتصال:

مشاركةبواسطة irc4arab » الاثنين يناير 12, 2004 10:05 am

???? ??? ????? ??? ??????? .. ??? ??? ???? ????? ?????

??? ??? ??? ?? ??? .htaccess

كود: تحديد الكل

AddHandler application/x-httpd-php .html


?????? ???? ????? ???? ??????? ?? ??????? :idea:
?????? ????? ????? ???? ????? ?? ??? ?? ???? ?????? ???? ???? ????

???? ??????
::. نحن لا ندعي القمه ولا الأفضليه ولاكن بالتعاون وبذل الجهود نسعى إليهما .::

صورة العضو الرمزية
رمال
عضو جديد
عضو جديد
مشاركات: 6
اشترك في: الأربعاء مايو 21, 2003 2:17 am

مشاركةبواسطة رمال » الاثنين يناير 12, 2004 11:22 am

????? ??? AC ??? ???? ???? ????? ?? ??????? ???? ??? ????? ??????? ??? ??? ?? ?? ???? irc4arab

?? ???? ??? ???? ??? ?????? ??spider ???? ???? ?????? googlebot ??? ????? ??? ?????? ????.. ????? ?? ???????? ???? ???? ??? ??? ???????? ??? ?????? ?? ????? ???? ????? ???? ????..
????? ??? ??? ???????? ?? ???? ??? ???? ????????? ???? ?????? ???? ?? SIDS,, ???????? ??? ????? phpbb ????? ?? ??? ??????? ??? ?? ???? ??? ??????? ?? ????.. ???? ???????? ??? ??? ?? ????.. ?? ?? ???????? ???? ??? ????? ??????? ????? ???? ??????? ??? ???? ?????..

??? ?????? ???? ??? ????? ?????? ??????.. ??? ???? ????? ?????? ?? ???? ??????
?? ??? ???? ??? ?????? ??googlebot ??? ??????..

???? ?? ??? ????? ???? ??? ??? ???? ???? ???? irc4arab ?????? ???? ??????? ?? php ??? html
???? ??? irc4arab ??????? ???? ???? ??????? ?????? ??? ????? ?????? ???? ???? ???? ???? ?????? ??? ?? ??? ????? ???? ???? ?????? phpbb ?? ?????? ???????..

كود: تحديد الكل

############################################################## 
## MOD Title: Static-looking phpBB pages
## MOD Author: Acid Paul
##############################################################
## MOD Description:
## I have modified the Googlifier mod for PHPNuke with PHPBB2 port
## found at www.orientalgate.org to work with standalone PHPBB2. This
## mod allows you to turn dynamic forum urls into static ones and
## therefore get better indexed and ranked by Google & co., as well as
## picked by search engines, that don't like dynamic URLs (e.g.
## AllTheWeb).
##                         
## The effect is like this:
##
## > viewtopic.php?t=157 => ftopic28.html
##
## (affects all topics, posts, forum folders and pagination; member
## profiles, search, lorgin and usergroups URL stay unchanged; the main
## page remains index.php)
##
## Requirements: you need mod_rewrite enabled as well as ability to
## use .htaccess or modify apache config files.
##
## Implementation:
##############################################################

#
#---[ Open ]--------------------------
#
/includes/page_header.php

#
#---[ Find ]------------------------
#
//
// Generate logged in/logged out status
//

#
#---[ Before, Add ]---------------------------
#
ob_start();
function replace_for_mod_rewrite(&$s)
{
$urlin =
array(
"'(?<!/)viewforum.php\?f=([0-9]*)&amp;topicdays=([0-9]*)&amp;start=([0-9]*)'",
"'(?<!/)viewforum.php\?f=([0-9]*)&amp;mark=topics'",
"'(?<!/)viewforum.php\?f=([0-9]*)'",
"'(?<!/)viewtopic.php\?t=([0-9]*)&amp;view=previous'",
"'(?<!/)viewtopic.php\?t=([0-9]*)&amp;view=next'",
"'(?<!/)viewtopic.php\?t=([0-9]*)&amp;postdays=([0-9]*)&amp;postorder=([a-zA-Z]*)&amp;start=([0-9]*)'",
"'(?<!/)viewtopic.php\?t=([0-9]*)&amp;start=([0-9]*)&amp;postdays=([0-9]*)&amp;postorder=([a-zA-Z]*)&amp;highlight=([a-zA-Z0-9]*)'",
"'(?<!/)viewtopic.php\?t=([0-9]*)&amp;start=([0-9]*)'",
"'(?<!/)viewtopic.php\?t=([0-9]*)'",
"'(?<!/)viewtopic.php&amp;p=([0-9]*)'",
"'(?<!/)viewtopic.php\?p=([0-9]*)'",
);
$urlout = array(
"viewforum\\1-\\2-\\3.html",
"forum\\1.html",
"forum\\1.html",
"ptopic\\1.html",
"ntopic\\1.html",
"ftopic\\1-\\2-\\3-\\4.html",
"ftopic\\1.html",
"ftopic\\1-\\2.html",
"ftopic\\1.html",
"sutra\\1.html",
"sutra\\1.html",
);
$s = preg_replace($urlin, $urlout, $s);
return $s;
}


#
#---[ Open ]--------------------------
#
/includes/page_tail.php

#
#---[ Find ]-------------------------
#
$db->sql_close();


#
#---[ After, Add ]---------------------------
#
$contents = ob_get_contents();
ob_end_clean();
echo replace_for_mod_rewrite($contents);
global $dbg_starttime;

#
#---[ Find ]-------------------------
#
ob_end_clean();


#
#---[ After, Add ]---------------------------
#
echo replace_for_mod_rewrite($contents);
global $dbg_starttime;


#
#---[ Open ]--------------------------
# Or create. In forum root.
.htaccess

#
#---[ Add ]---------------------------
#
RewriteEngine On
RewriteRule ^forum.* index.php
RewriteRule ^forum([0-9]*).* viewforum.php?f=$1&mark=topic
RewriteRule ^viewforum([0-9]*)-([0-9]*)-([0-9]*).* viewforum.php?f=$1&topicdays=$2&start=$3
RewriteRule ^forum([0-9]*).* viewforum.php?f=$1
RewriteRule ^ptopic([0-9]*).* viewtopic.php?t=$1&view=previous
RewriteRule ^ntopic([0-9]*).* viewtopic.php?t=$1&view=next
RewriteRule ^ftopic([0-9]*)-([0-9]*)-([a-zA-Z]*)-([0-9]*).* viewtopic.php?t=$1&postdays=$2&postorder=$3&start=$4
RewriteRule ^ftopic([0-9]*)-([0-9]*).* viewtopic.php?t=$1&start=$2
RewriteRule ^ftopic([0-9]*).* viewtopic.php?t=$1
RewriteRule ^ftopic([0-9]*).html viewtopic.php?t=$1&start=$2&postdays=$3&postorder=$4&highlight=$5
RewriteRule ^sutra([0-9]*).* viewtopic.php?p=$1

#
#---[ Or ]----------------------------
# Note: sometimes this .htaccess code won't work properly if the forum is
# on a subdomain, you may need to try this variation:
RewriteEngine On
RewriteRule ^forums.* /index.php
RewriteRule ^forum([0-9]*).* /viewforum.php?f=$1&mark=topic
RewriteRule ^viewforum([0-9]*)-([0-9]*)-([0-9]*).* /viewforum.php?f=$1&topicdays=$2&start=$3
RewriteRule ^forum([0-9]*).* /viewforum.php?f=$1
RewriteRule ^ptopic([0-9]*).* /viewtopic.php?t=$1&view=previous
RewriteRule ^ntopic([0-9]*).* /viewtopic.php?t=$1&view=next
RewriteRule ^ftopic([0-9]*)-([0-9]*)-([a-zA-Z]*)-([0-9]*).* /viewtopic.php?t=$1&postdays=$2&postorder=$3&start=$4
RewriteRule ^ftopic([0-9]*)-([0-9]*).* /viewtopic.php?t=$1&start=$2
RewriteRule ^ftopic([0-9]*).* /viewtopic.php?t=$1
RewriteRule ^ftopic([0-9]*).html /viewtopic.php?t=$1&start=$2&postdays=$3&postorder=$4&highlight=$5
RewriteRule ^sutra([0-9]*).* /viewtopic.php?p=$1


#
#---[ Open ]--------------------------
# At the *site* root
robots.txt


#
#---[ Add ]---------------------------
#
Disallow: /your-forum-folder/sutra*.html$
Disallow: /your-forum-folder/ptopic*.html$
Disallow: /your-forum-folder/ntopic*.html$
Disallow: /your-forum-folder/ftopic*asc*.html$


# (This is required to avoid feeding duplicate content to Google)
#
# Step 5. Apply Google Mod #1 described at this page.
#
# Congrats! Now you now have traffic-generating mogul.
# _________________
# Acidics.com - dissolving online scams and hoaxes
# Go pour some acid on fraudsters at Forum.acidics.com
#
#
##############################################################
## Seems like I'm overcreative now  - actually all I'm doing now is
## nursing the forum for search engines. Here's one more mod which
## addresses the pagination issue:
##
## Problem: when the topic has 15+ posts it is devided into several
## pages (whether pages are limited to 15 posts per page depends on
## how you set your board properties). The bad thing is that from the list
## of topics URLs to multiple pages look like
## "viewtopic.php?t=47&start=105" but when you open these pages URLs
## grow huge to
## "viewtopic.php?t=47&postdays=0&postorder=asc&start=105" though
## they lead to the same pages. Search engines will think these are
## different pages holding duplicate content and may penalize your
## forum site. There're two solutions: just use robots.txt to forbid
## spidering these long URLs or apply this mod:
##
## Mod effect: solves the pagination issue described above; as you have
## universal links across the board they contribute to inbound link
## structure, actively funnel PageRank between pages and allow SE
## spiders to index your forum deeper. This enhancement can be freely
## used in conjunction with my previous mod_rewrite mod (found at
## page 31 in this thread). -> [ quixilver: that's the code above ]
##
## Requirements: none, just a text editor
##
## Implementation:
##############################################################

#
#---[ Open ]--------------------------
#
viewtopic.php

#
#---[ Find ]---------------------------
# One big line.
$pagination = ( $highlight_active ) ? generate_pagination("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&postdays=$post_days&postorder=$post_order&highlight=$highlight", $total_replies, $board_config['posts_per_page'], $start) : generate_pagination("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&postdays=$post_days&postorder=$post_order", $total_replies, $board_config['posts_per_page'], $start);

#
#---[ Replace with ]-------------------
#
if ($post_days==0 && $post_order==asc)
{
$pagination = ( $highlight_active ) ? generate_pagination("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&highlight=$highlight", $total_replies, $board_config['posts_per_page'], $start) : generate_pagination("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id", $total_replies, $board_config['posts_per_page'], $start);
}
else
{
$pagination = ( $highlight_active ) ? generate_pagination("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&postdays=$post_days&postorder=$post_order&highlight=$highlight", $total_replies, $board_config['posts_per_page'], $start) : generate_pagination("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&postdays=$post_days&postorder=$post_order", $total_replies, $board_config['posts_per_page'], $start);
}

#
#---[ End ]---------------------------
#

##############################################################
##
## Enjoy! Comments are welcome
##
## P.S. some more rules should be added to robots.txt to prevent
## spidering of "viewtopic.php?t=47&start=0"-type URLs (another
## duplicate-content problem). I'll play with robots.txt validators and
## come up with a neat code later.
##############################################################

???? ????? ??? ????? ??? ????? ?? ??? ??? ?? ?????? ????? ????? ?? ???????? ???? ???? ???? ?? ???? ?????..



???? ??? ???? ???? ???? ???? ???? ?????? ????? ?????? ???? ???? ?? ????..
??? ?? ?????:

كود: تحديد الكل

############################################################## 
## MOD Title: enhance-google-indexing
## MOD Author: Showscout & R. U. Serious
## MOD Description: If the User_agent includes the string 'Googlebot', then no session_ids are appended to links, which will (hopefully) allow google to index more than just your index-site.
## MOD Version: 0.9.1
##
## Installation Level: easy
## Installation Time: 2 Minutes
## Files To Edit: includes/sessions.php
## Included Files: n/a
##############################################################
## Author Notes: There may be issues with register globals on newer
##       PHP version. If you know for sure and also how to fix it post in
##       this thread: http://www.phpbb.com/phpBB/viewtopic.php?t=32328
##
##       Obviously, if someone thinks it's funny to surf around with a
##       user_agent containing Googlebot and at the same time does not
##       allow cookies, he will loose his session/login on every pageview.
##       Should he complain to you, tell him to eat your shorts.
##
##       If you want to add further crawlers look at the appropiate line and
##       feel free to add part of the user_agent which should be _unique_
##       unique to that, so a user is never confused with a bot.
##
##############################################################
## Version History: 0.9.0 initial release, only googlebot
##                         0.9.1 added inktomi (MSN-search/crawler-bot)
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################

#-----[ OPEN  ]------------------------------------------
includes/sessions.php

#-----[ FIND ]------------------------------------------
   global $SID;

   if ( !empty($SID) && !eregi('sid=', $url) )

#-----[ REPLACE WITH ]------------------------------------------
   global $SID, $HTTP_SERVER_VARS;

   if ( !empty($SID) && !eregi('sid=', $url) && !strstr($HTTP_SERVER_VARS['HTTP_USER_AGENT'] ,'Googlebot') && !strstr($HTTP_SERVER_VARS['HTTP_USER_AGENT'] ,'slurp@inktomi.com;'))

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM


?????? ??? ?? ?????? ?? ????? ???? ???????? ?????.. ????? ?????? ????? ???.. ????? ???? ??? ??????? ??? ?????? ??? ??? ??? ????????.. ?? ?? ?????? ?? ??????? ?? ????? ???? ????????? ????????? ???? ???? ?? ?????? ???????..


?????? .. ????????..[/code]

irc4arab
صُناع أريبيا
صُناع أريبيا
مشاركات: 123
اشترك في: الثلاثاء إبريل 29, 2003 12:49 pm
مكان: عـ الخليج ـروس
اتصال:

مشاركةبواسطة irc4arab » الاثنين يناير 12, 2004 2:49 pm

????? ???? ??? ?????? ??? ???? ?? ????? ??? ??? ??????? ???? ??? ???? ?? ???? ? ????? ?? ??? phpBB ????? ????? ??? ???? ????? ??? ???????? ??? ???? ????

??????
::. نحن لا ندعي القمه ولا الأفضليه ولاكن بالتعاون وبذل الجهود نسعى إليهما .::

صورة العضو الرمزية
مصمم هاكات
عضو جديد
عضو جديد
مشاركات: 19
اشترك في: الجمعة ديسمبر 20, 2002 11:25 pm
مكان: مملكة البحرين
اتصال:

مشاركةبواسطة مصمم هاكات » الاثنين يناير 12, 2004 3:19 pm

??????? ??? ?? ???? 2.2

?? ??????? ??? ?? ???? :lol::lol::D

??? ??????? ??? ????? http://www.phpbb.com/kb/article.php?article_id=29

???? ????? ??? ???? ????? ???? :D
لا تنسون تشتركون في الموقع، http://mohd.vraag-en-antwoord.nl/main/
الدعم عن طريق الرساءل الخاصة مرفوض

AC
المؤسس
المؤسس
مشاركات: 1939
اشترك في: الجمعة مايو 17, 2002 7:32 am
مكان: السعودية
اتصال:

مشاركةبواسطة AC » الثلاثاء يناير 13, 2004 6:40 am

?????? ?????

???? ??? ????? ??? ??????? .. ??? ??? ???? ????? ?????

??? ??? ??? ?? ??? .htaccess


????? ?? ???? ??? ??? ??? ???????? ?????? php ??? ??? phpsuexec ?????? ??????..

?????? ?? phpsuexec ?? ??????? ???.htaccess ???? ?????? error 500 :roll: ???? ?????? ??????? ??php ??? ?????? ??? php. :arrow:

?????? ??????? phpsuexec ???? ????? ??? ?????????? ???? ???? ??? ?????? ?? ??????? ????? ???????? ?? ????? ??????? 777 ?? ?? ?????? ?????? ???????? ?????? ????..??? ????? ????? ????? ????? ???? nobody???? ?? ??? ???? ???? ?????? ??????? ??????....????? ???? ????? ?????? ????? ???? ????? ?????? ??? ???? ????? ?? ??????????

?????????

http://www.google.com/search?hl=en&ie=U ... ec&spell=1

?? ???? ?????...?????? ??? ??? ?????? :idea:
لوكان الجهل رجلاً لقتلته

I Hate vBulletin

نِـثَـارٌ (مدونتي) | | وافــــر >> Wapher.Com || مُفيد.كوم >> MoFFed.Com

:idea: البريد والرسائل الخاصه لايعدان السبيل الامثل للدعم الفني :idea:

irc4arab
صُناع أريبيا
صُناع أريبيا
مشاركات: 123
اشترك في: الثلاثاء إبريل 29, 2003 12:49 pm
مكان: عـ الخليج ـروس
اتصال:

مشاركةبواسطة irc4arab » الثلاثاء يناير 13, 2004 9:55 am

?????? ????? ...

????? ?? ???? ??? ??? ??? ???????? ?????? php ??? ??? phpsuexec ?????? ??????..

?????? ?? phpsuexec ?? ??????? ???.htaccess ???? ?????? error 500 ???? ?????? ??????? ??php ??? ?????? ??? php.


??????? ?? ???? ?? ??? ??? ????? ????? phpsuexec ... ??? ?? ???? ?? ?????? ??? ???? ??? ????? ???? ??? ????? ???? ??? ???? ???? ?? ?? ???? ???? ?? linux ? unix

???? ??????
::. نحن لا ندعي القمه ولا الأفضليه ولاكن بالتعاون وبذل الجهود نسعى إليهما .::

صورة العضو الرمزية
مصمم هاكات
عضو جديد
عضو جديد
مشاركات: 19
اشترك في: الجمعة ديسمبر 20, 2002 11:25 pm
مكان: مملكة البحرين
اتصال:

مشاركةبواسطة مصمم هاكات » الثلاثاء يناير 13, 2004 3:50 pm

???? ????? كتب:??????? ??? ?? ???? 2.2

?? ??????? ??? ?? ???? :lol::lol::D

??? ??????? ??? ????? http://www.phpbb.com/kb/article.php?article_id=29

???? ????? ??? ???? ????? ???? :D


??? ??? ???? ??? ? ?? ????? ? ?? ?? ?????? ?? phpbb.com ? ???? ?????? ???????
? ?? ????? ?? ????? ?????? ?????? ??? ??? ???? ?????? ?? sid ??? ??? ??????? ?? googlebot
لا تنسون تشتركون في الموقع، http://mohd.vraag-en-antwoord.nl/main/
الدعم عن طريق الرساءل الخاصة مرفوض

AC
المؤسس
المؤسس
مشاركات: 1939
اشترك في: الجمعة مايو 17, 2002 7:32 am
مكان: السعودية
اتصال:

مشاركةبواسطة AC » الأربعاء يناير 14, 2004 5:01 am

?????? ?????

??????? ?? ???? ?? ??? ??? ????? ????? phpsuexec ... ??? ?? ???? ?? ?????? ??? ???? ??? ????? ???? ??? ????? ???? ??? ???? ???? ?? ?? ???? ???? ?? linux ? unix


??????? ?? ????? ?? ????? ?????....???? ??? ??? ?? phpsuexec ???? ????? ?? ?????
.htaccess ...???? ??? ??????? ??? ?????? ???????? ?????.. ??? ???? ??? ?????? php.ini ???? ??????? ?????? ??? ??????? ??????? ?? ???Handler

?? ??????? ???? ????? ?? ???? ??? ???? ?? ???? 8)

?????? :)
لوكان الجهل رجلاً لقتلته

I Hate vBulletin

نِـثَـارٌ (مدونتي) | | وافــــر >> Wapher.Com || مُفيد.كوم >> MoFFed.Com

:idea: البريد والرسائل الخاصه لايعدان السبيل الامثل للدعم الفني :idea:

صورة العضو الرمزية
رمال
عضو جديد
عضو جديد
مشاركات: 6
اشترك في: الأربعاء مايو 21, 2003 2:17 am

مشاركةبواسطة رمال » الجمعة يناير 16, 2004 2:03 am

??? AC
????? ?? ???? ?????? ???? ???? ???? ???? ??????? php ?? ????? ????? ??????? ?? php ??? static ?? ????? ??? Sids ???? ???? ?? ???? ??????? htaccess ????? ?? ??????? ?? ?????? ?????? ????????? ??????? ??? ????? ??????? ??? ??????? ?? ????? ????????..

?? ???? ??? ????? ?? ?? ???:

كود: تحديد الكل

I have modified the Googlifier mod for PHPNuke with PHPBB2 port found at www.orientalgate.org to work with standalone PHPBB2. This mod allows you to turn dynamic forum urls into static ones and therefore get better indexed and ranked by Google & co., as well as picked by search engines, that don't like dynamic URLs (e.g. AllTheWeb). 

The effect is like this:

> viewtopic.php?t=157 => ftopic28.html

(affects all topics, posts, forum folders and pagination; member profiles, search, lorgin and usergroups URL stay unchanged; the main page remains index.php)

Requirements: you need mod_rewrite enabled as well as ability to use .htaccess or modify apache config files.

Implementation:

Step 1. In /includes/page_header.php before

Code:
//
// Generate logged in/logged out status
//


add this code (make sure there are no space breaks at line ends after you paste):

Code:
ob_start();
function replace_for_mod_rewrite(&$s)
{
$urlin =
array(
"'(?<!/)viewforum.php\?f=([0-9]*)&topicdays=([0-9]*)&start=([0-9]*)'",
"'(?<!/)viewforum.php\?f=([0-9]*)&mark=topics'",
"'(?<!/)viewforum.php\?f=([0-9]*)'",
"'(?<!/)viewtopic.php\?t=([0-9]*)&view=previous'",
"'(?<!/)viewtopic.php\?t=([0-9]*)&view=next'",
"'(?<!/)viewtopic.php\?t=([0-9]*)&postdays=([0-9]*)&postorder=([a-zA-Z]*)&start=([0-9]*)'",
"'(?<!/)viewtopic.php\?t=([0-9]*)&start=([0-9]*)&postdays=([0-9]*)&postorder=([a-zA-Z]*)&highlight=([a-zA-Z0-9]*)'",
"'(?<!/)viewtopic.php\?t=([0-9]*)&start=([0-9]*)'",
"'(?<!/)viewtopic.php\?t=([0-9]*)'",
"'(?<!/)viewtopic.php&p=([0-9]*)'",
"'(?<!/)viewtopic.php\?p=([0-9]*)'",
);
$urlout = array(
"viewforum\\1-\\2-\\3.html",
"forum\\1.html",
"forum\\1.html",
"ptopic\\1.html",
"ntopic\\1.html",
"ftopic\\1-\\2-\\3-\\4.html",
"ftopic\\1.html",
"ftopic\\1-\\2.html",
"ftopic\\1.html",
"sutra\\1.html",
"sutra\\1.html",
);
$s = preg_replace($urlin, $urlout, $s);
return $s;
}


Step 2. In /includes/page_tail.php after

Code:
$db->sql_close();


add this:

Code:
$contents = ob_get_contents();
ob_end_clean();
echo replace_for_mod_rewrite($contents);
global $dbg_starttime;
 


in the same file after

Code:
ob_end_clean();


add this:

Code:
echo replace_for_mod_rewrite($contents);
global $dbg_starttime;


Step 3. In your .htaccess file (if you don't have one create it; should be located in you forum root directory) paste these lines:

Code:
RewriteEngine On
RewriteRule ^forums.* index.php
RewriteRule ^forum([0-9]*).* viewforum.php?f=$1&mark=topic
RewriteRule ^viewforum([0-9]*)-([0-9]*)-([0-9]*).* viewforum.php?f=$1&topicdays=$2&start=$3
RewriteRule ^forum([0-9]*).* viewforum.php?f=$1
RewriteRule ^ptopic([0-9]*).* viewtopic.php?t=$1&view=previous
RewriteRule ^ntopic([0-9]*).* viewtopic.php?t=$1&view=next
RewriteRule ^ftopic([0-9]*)-([0-9]*)-([a-zA-Z]*)-([0-9]*).* viewtopic.php?t=$1&postdays=$2&postorder=$3&start=$4
RewriteRule ^ftopic([0-9]*)-([0-9]*).* viewtopic.php?t=$1&start=$2
RewriteRule ^ftopic([0-9]*).* viewtopic.php?t=$1
RewriteRule ^ftopic([0-9]*).html viewtopic.php?t=$1&start=$2&postdays=$3&postorder=$4&highlight=$5
RewriteRule ^sutra([0-9]*).* viewtopic.php?p=$1


Note: sometimes this .htaccess code won't work properly if the forum is on a subdomain (was the case with me), you may need to try this variation:

Code:
RewriteEngine On
RewriteRule ^forums.* /index.php
RewriteRule ^forum([0-9]*).* /viewforum.php?f=$1&mark=topic
RewriteRule ^viewforum([0-9]*)-([0-9]*)-([0-9]*).* /viewforum.php?f=$1&topicdays=$2&start=$3
RewriteRule ^forum([0-9]*).* /viewforum.php?f=$1
RewriteRule ^ptopic([0-9]*).* /viewtopic.php?t=$1&view=previous
RewriteRule ^ntopic([0-9]*).* /viewtopic.php?t=$1&view=next
RewriteRule ^ftopic([0-9]*)-([0-9]*)-([a-zA-Z]*)-([0-9]*).* /viewtopic.php?t=$1&postdays=$2&postorder=$3&start=$4
RewriteRule ^ftopic([0-9]*)-([0-9]*).* /viewtopic.php?t=$1&start=$2
RewriteRule ^ftopic([0-9]*).* /viewtopic.php?t=$1
RewriteRule ^ftopic([0-9]*).html /viewtopic.php?t=$1&start=$2&postdays=$3&postorder=$4&highlight=$5
RewriteRule ^sutra([0-9]*).* /viewtopic.php?p=$1


Step 4. Very important! In your robots.txt file (goes at the *site* root) add these lines:

Code:
Disallow: /your-forum-folder/sutra*.html$
Disallow: /your-forum-folder/ptopic*.html$
Disallow: /your-forum-folder/ntopic*.html$
Disallow: /your-forum-folder/ftopic*asc*.html$


(This is required to avoid feeding duplicate content to Google)

Step 5. Apply Google Mod #1 described at this page.

Congrats! Now you now have traffic-generating mogul


??????? ?? google MOD #1 ?? ???? ?????? ?? ??? ??????.. ??? ????? ?????.. ????? ?????? ???? ???? ?????.. ??? ???? ????? ????? ?????? ?? ???? ???????? ??? ???????? ??? ??? ??????? ???????.. ????? ???? ?? ???? ????? ????? ??????.. ???? ???? ?? ???? ????? ??????.. ?? ?????? ?? ???????? ????? ?????? ???? ?????? ?????? ?? ?????? ???????? ??? ?????? ?????? ?? ?????.. ?????? ???? ???? ???????? ????? ?? ??? ????? ???? ????? ?? ????? ??? ????.. ????? ???????? ?????? ??? ?? ????..

AC
المؤسس
المؤسس
مشاركات: 1939
اشترك في: الجمعة مايو 17, 2002 7:32 am
مكان: السعودية
اتصال:

مشاركةبواسطة AC » الجمعة يناير 16, 2004 7:11 am

?????? ?????

????? ??? ????,

??? ?????? ??? ???????? ???

Sids ???? ???? ?? ???? ??????? htaccess


كود: تحديد الكل

as well as ability to use .htaccess 


??????? ??????? ?? ?????? ????? phpsuexec ????????? ????? ?????? ???????...???? ??? ??? ???????? ??? ?????? ??? ?????? ?????? ????...?????? ?? ???? ??????? ??????

??? ??????? ??? ??? ?????? ??? ?? ????? ??? ????? ???php ?? htaccess ???? ?????? ??????? error 500 ??? ???? ??CGI ???????

??????? ?? htaccess ?? phpsuexec ?? php.ini ???? ??? ?? ?????? ????? ???Handler.... ???? ???? ??? ????? ???? :|

??? ??? ????? ?? ???? ???? ??? ?? ????? ?? ????? ???Handler ?? phpsuexec ??? ?? phpBB Group ?? ??????? ?????? 8O

?????? :)
لوكان الجهل رجلاً لقتلته

I Hate vBulletin

نِـثَـارٌ (مدونتي) | | وافــــر >> Wapher.Com || مُفيد.كوم >> MoFFed.Com

:idea: البريد والرسائل الخاصه لايعدان السبيل الامثل للدعم الفني :idea:

صورة العضو الرمزية
مصمم هاكات
عضو جديد
عضو جديد
مشاركات: 19
اشترك في: الجمعة ديسمبر 20, 2002 11:25 pm
مكان: مملكة البحرين
اتصال:

مشاركةبواسطة مصمم هاكات » الجمعة يناير 16, 2004 11:11 pm

??? ??? ???? ???? ???? ??? ??? ?????

??? ?? ???? htaccess ????

???? ??? ??? :x
لا تنسون تشتركون في الموقع، http://mohd.vraag-en-antwoord.nl/main/
الدعم عن طريق الرساءل الخاصة مرفوض

AC
المؤسس
المؤسس
مشاركات: 1939
اشترك في: الجمعة مايو 17, 2002 7:32 am
مكان: السعودية
اتصال:

مشاركةبواسطة AC » السبت يناير 17, 2004 6:05 am

?????? ?????

??? ???? ?????, ????? ??? ??????? ???? ?? ?????? ??????? ?? ????

??? ?????? ???? ??? ???Handler ?? ??? ????? ??????? ??????? html. ?????

viewtopic234.html

viewforum9.html

???? ?? ???? ?????? ???????? ??? ?? ???crawler-bots ???? google ???

?? ???? ??? ??? ???????

http://dnforum.com/f5

8O 8O ???? ??? ???? ????????

http://dnforum.com/thread_ankrate.com_1 ... 48373.html

??? ??????? ???? ???? ??? ?????? ????? ???? ????? ??? ????...?????? ?? ??? ????? ??? ??????Handler ??????.htaccess

?????? :)
لوكان الجهل رجلاً لقتلته

I Hate vBulletin

نِـثَـارٌ (مدونتي) | | وافــــر >> Wapher.Com || مُفيد.كوم >> MoFFed.Com

:idea: البريد والرسائل الخاصه لايعدان السبيل الامثل للدعم الفني :idea:


العودة إلى ”[ ×.2.0 ] النقاش العام“

الموجودون الآن

المتصفحون للمنتدى الآن: لا يوجد أعضاء مسجلين متصلين و 10 زوار