هاست لینوکس

آخرین بسته‌ی MyBB: نسخه‌ی 1.8.27 MyBB منتشر شد


امتیاز موضوع:
  • 0 رأی - میانگین امتیازات: 0
  • 1
  • 2
  • 3
  • 4
  • 5
آموزش جامع نصب پلاگین بهینه ساز Google Seo
#11
(۱۳۹۰/۱۰/۹، ۰۷:۴۹:۵۰ صبح)king_yekta نوشته است: ممنونم از پیگری شما

بفرمایید

خواهش میکنم!
این کد رو از فایل حذف و سپس تغییر نام و سایر تغییرات رو انجام بدید:
کد:
Options -MultiViews +FollowSymlinks -Indexes
پاسخ
 سپاس شده توسطking_yekta (۱۳۹۰/۱۰/۹، ۰۸:۱۶:۱۷ صبح)
#12
ممنون درست شد Heart


اون کد که پلاگین داده بود رو کامل کپی کردم در فایل .htaccess و زمانی که دوباره اومدم تو قسمت پلاگین ها دیدم بازم یه کد کوچولو مانند تصویر زیر داده که گفته باید کپی کنید به .htaccess و من بازم این کد هم کپی کردم ولی با اینکه کپی کردم بازم این کد در قسمت پلاگین ها هست و نمیره !

[تصویر:  ru095n6r8b0rpdoqe1xm.png]


حالا باید چیکار کنم ؟


با تشکر


.

از این پس به جای نام جعلی فارسی می نویسم :

پارسی


[تصویر:  cpxb2lbk0zjrndhh06lw.png]




پاسخ
#13
متوجه منظورتون نشدم. هنوز مشکل دارید یا برطرف شده؟
پاسخ
 سپاس شده توسطking_yekta (۱۳۹۰/۱۰/۹، ۰۸:۵۵:۳۵ صبح)
#14
آره هنوز یه مورد هست .

ببینید با اینکه من تمامی کد ها رو کپی کردم داخلhtaccess ولی بازم میگه کدی که در تصویر زیر است را بریزم تو فایل .htaccess

همین کد رو هم اضاف کردم به فایل htaccess اما هنوز تو قسمت پلاگین ها میادش .


این تصویر :



[تصویر:  ru095n6r8b0rpdoqe1xm.png]


آیا مشکل داره ؟
.

از این پس به جای نام جعلی فارسی می نویسم :

پارسی


[تصویر:  cpxb2lbk0zjrndhh06lw.png]




پاسخ
#15
قاعدتا نباید این کدها رو نمایش بده. نشون دهنده اینه که این کدهای مورد نیاز در فایل htaccess وجود نداره.
اگه ممکنه فایل htaccess. رو هم ضمیمه یا کدهاش رو اینجا داخل تگ code قرار بدید.
پاسخ
 سپاس شده توسطking_yekta (۱۳۹۰/۱۰/۹، ۰۹:۱۸:۰۱ صبح)
#16

ممنون

ببینید اول این کد در پلاگین بود و اضاف کردم به فایل htaccess

کد:
RewriteEngine on

# Some hosts require RewriteBase to make RewriteRules work.
RewriteBase /

# Google SEO workaround for search.php highlights:
# Make this rule the first rewrite rule in your .htaccess!
RewriteRule ^([^&]*)&(.*)$ http://forum.darhayebaz.com/$1?$2 [L,QSA,R=301]

# Google SEO 404:
ErrorDocument 404 /misc.php?google_seo_error=404

# Google SEO Sitemap:
RewriteRule ^sitemap-([^./]+)\.xml$ misc.php?google_seo_sitemap=$1 [L,QSA,NC]

# Google SEO URL Forums:
RewriteRule ^Forum-([^./]+)$ forumdisplay.php?google_seo_forum=$1 [L,QSA,NC]

# Google SEO URL Threads:
RewriteRule ^Thread-([^./]+)$ showthread.php?google_seo_thread=$1 [L,QSA,NC]

# Google SEO URL Announcements:
RewriteRule ^Announcement-([^./]+)$ announcements.php?google_seo_announcement=$1 [L,QSA,NC]

# Google SEO URL Users:
RewriteRule ^User-([^./]+)$ member.php?action=profile&google_seo_user=$1 [L,QSA,NC]

# Google SEO URL Calendars:
RewriteRule ^Calendar-([^./]+)$ calendar.php?google_seo_calendar=$1 [L,QSA,NC]

# Google SEO URL Events:
RewriteRule ^Event-([^./]+)$ calendar.php?action=event&google_seo_event=$1 [L,QSA,NC]


بعدش وقتی اومدم در قسمت پلاگین ها دیدم این کد رو هم گفته اضاف کنید به فایل htaccess که من این کد رو هم در آخر دیگر کد ها اضافه کردم


کد:
# Some hosts require RewriteBase to make RewriteRules work.
RewriteBase /

# Google SEO workaround for search.php highlights:
# Make this rule the first rewrite rule in your .htaccess!
RewriteRule ^([^&]*)&(.*)$ http://forum.darhayebaz.com/$1?$2 [L,QSA,R=301]


الان کل کدهای فایل htaccess به صورت زیر است

کد:
#
# 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]+)\.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]

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

# Some hosts require RewriteBase to make RewriteRules work.
RewriteBase /

# Google SEO workaround for search.php highlights:
# Make this rule the first rewrite rule in your .htaccess!
RewriteRule ^([^&]*)&(.*)$ http://forum.darhayebaz.com/$1?$2 [L,QSA,R=301]

RewriteEngine on

# Some hosts require RewriteBase to make RewriteRules work.
RewriteBase /

# Google SEO workaround for search.php highlights:
# Make this rule the first rewrite rule in your .htaccess!
RewriteRule ^([^&]*)&(.*)$ http://forum.darhayebaz.com/$1?$2 [L,QSA,R=301]

# Google SEO 404:
ErrorDocument 404 /misc.php?google_seo_error=404

# Google SEO Sitemap:
RewriteRule ^sitemap-([^./]+)\.xml$ misc.php?google_seo_sitemap=$1 [L,QSA,NC]

# Google SEO URL Forums:
RewriteRule ^Forum-([^./]+)$ forumdisplay.php?google_seo_forum=$1 [L,QSA,NC]

# Google SEO URL Threads:
RewriteRule ^Thread-([^./]+)$ showthread.php?google_seo_thread=$1 [L,QSA,NC]

# Google SEO URL Announcements:
RewriteRule ^Announcement-([^./]+)$ announcements.php?google_seo_announcement=$1 [L,QSA,NC]

# Google SEO URL Users:
RewriteRule ^User-([^./]+)$ member.php?action=profile&google_seo_user=$1 [L,QSA,NC]

# Google SEO URL Calendars:
RewriteRule ^Calendar-([^./]+)$ calendar.php?google_seo_calendar=$1 [L,QSA,NC]

# Google SEO URL Events:
RewriteRule ^Event-([^./]+)$ calendar.php?action=event&google_seo_event=$1 [L,QSA,NC]


# Some hosts require RewriteBase to make RewriteRules work.
RewriteBase /

# Google SEO workaround for search.php highlights:
# Make this rule the first rewrite rule in your .htaccess!
RewriteRule ^([^&]*)&(.*)$ http://forum.darhayebaz.com/$1?$2 [L,QSA,R=301]


ولی بازم اون کدها درون قسمت پلاگینها نمایش داده میشن Huh


با تشکر
.

از این پس به جای نام جعلی فارسی می نویسم :

پارسی


[تصویر:  cpxb2lbk0zjrndhh06lw.png]




پاسخ
#17
شما محتویات htaccess.txt رو که اینجا ضمیمه کرده بودید رو به عنوان بک آپ وارد فایل htaccess. خودتون کنید(کدهای قبلی رو تماما حذف کنید) کد آپشن رو هم حذف کنید.
بعد دوباره به بخش پلاگین سئو برگردید و تمامی کد ها رو به همون صورتی که هست کامل کپی کنید و اونها رو دقیقا [تاکید میکنم: دقیقا] زیر این کد:
کد:
<IfModule mod_rewrite.c>
قرار بدید. حالا دیگه نباید کدی در بخش پلاگین نمایش داده بشه.
مثل تصویر:
[تصویر:  attachment.php?aid=5046]
پاسخ
 سپاس شده توسطking_yekta (۱۳۹۰/۱۰/۹، ۱۰:۰۷:۱۲ صبح)
#18
ممنون دوست گلم . درست شد Heart

این مورد

نقل‌قول: 7. حالا باید گوگل سئوی فرومتون نصب شده باشه. میتونید آدرس ها رو چک کنید که داری html شده باشه.


یعنی چطوری باید باشن ؟ باید آخر آدرس ها پسوند html باشه ؟

و یه چیز دیگه اینکه آیا این نقشه الان درست است ؟

http://www.forum.darhayebaz.com/sitemap-index.xml

و باید فقط همین لینک را به گوگل وبمستر معرفی کنم ؟

یا اینکه دونه دونه لینک های داخل همین لینک را به صورت جدا به گوگل معرفی کنم :

مثلا :

http://forum.darhayebaz.com/sitemap-forums.xml?page=1

http://forum.darhayebaz.com/sitemap-threads.xml?page=1

http://forum.darhayebaz.com/sitemap-users.xml?page=1

http://forum.darhayebaz.com/sitemap-cale...xml?page=1

http://forum.darhayebaz.com/sitemap-index.xml?page=1


بخشید که زیاد سوال پرسیدم Heart

با تشکر
.

از این پس به جای نام جعلی فارسی می نویسم :

پارسی


[تصویر:  cpxb2lbk0zjrndhh06lw.png]




پاسخ
#19
(۱۳۹۰/۱۰/۹، ۱۰:۲۸:۰۶ صبح)king_yekta نوشته است: ممنون دوست گلم . درست شد Heart

این مورد

نقل‌قول: 7. حالا باید گوگل سئوی فرومتون نصب شده باشه. میتونید آدرس ها رو چک کنید که داری html شده باشه.


یعنی چطوری باید باشن ؟ باید آخر آدرس ها پسوند html باشه ؟

و یه چیز دیگه اینکه آیا این نقشه الان درست است ؟

http://www.forum.darhayebaz.com/sitemap-index.xml

و باید فقط همین لینک را به گوگل وبمستر معرفی کنم ؟

یا اینکه دونه دونه لینک های داخل همین لینک را به صورت جدا به گوگل معرفی کنم :

مثلا :

http://forum.darhayebaz.com/sitemap-forums.xml?page=1

http://forum.darhayebaz.com/sitemap-threads.xml?page=1

http://forum.darhayebaz.com/sitemap-users.xml?page=1

http://forum.darhayebaz.com/sitemap-cale...xml?page=1

http://forum.darhayebaz.com/sitemap-index.xml?page=1


بخشید که زیاد سوال پرسیدم Heart

با تشکر
خواهش میکنم
اون برای قبل از apply کردن هست. بعد از apply ، تیتر و نام موضوع ها یا انجمن ها و... در آدرسشون قرار میگیره بدون html.
نقشه درسته و فقط همون رو معرفی کنید خودش بقیه رو پیدا میکنه.
موفق باشید
پاسخ
 سپاس شده توسطking_yekta (۱۳۹۰/۱۰/۹، ۱۳:۱۴:۲۱ عصر)
#20
ببخشید بچه ها یکیتون میاد اینو واسه انجمن من نصب کنه؟
به نظر میاد تو مخیهBig Grin
کسی اینکارو برام انجام میده؟
پاسخ


پرش به انجمن:


کاربرانِ درحال بازدید از این موضوع: 1 مهمان