Google+

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rezolvat Problema plugin Google SEO
#1
Buna, Am o problema, am instalat pluginul Google SEO, dar am o problema cu el, imi redirectioneaza orice link, categorie etc. catre indexul forumului.
Link-urile sunt schimbate ex: http://www.eromaniaonline.com/Thread-Chr...n=lastpost

Iar la modificari apare inca:

Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Add to .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://www.eromaniaonline.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]


Ce am gresit? Precizez ca am urmat pasi de aici http://mybb.ro/t-instalarea-%C5%9Fi-util...carii.html. Dar ceva nu am facut bine, Dar nu stiu ce?

Cine ma poate lamuri?

#2
În mod normal dacă totul ar fi fost ok, ar fi trebuit ca pe pagina Plugins din Admin CP să nu ți se afișeze niciun cod htaccess.
Postează aici codul htaccess de pe serverul tău și tot ceea ce se afișează în dreptul pluginului de pe pagina Plugins!
Users : collective term for those who use computers. Users are divided into three types : novice, intermediate and expert.
Novice users : people who are afraid that simply pressing a key might break their computer.
Intermediate users : people who don`t know how to fix their computer after they`ve just pressed a key that broke it.
Expert users : people who break other people`s computers.
#3
Salut.
In pagina Plugins din Admin CP apare asa:

Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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://www.eromaniaonline.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]


Iar codul htaccess de pe server:

Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# EXAMPLE .htaccess FOR MYBB WITH GOOGLE SEO URL
# -------------------------------------------------------------------
# This file is identical to MyBB's htaccess.txt example file,
# with rewrite rules for a standard Google SEO install added.
#
# Before using this file please make sure to:
#
#   - replace /MyBB/ with your forum folder, e.g. / or /forum/
#   - replace yoursite/MyBB with your forum URL
#   - name the file '.htaccess' (starting with the dot, no .txt)
#
# Alternatively you can add the required rewrite rules to your
# existing .htaccess, the specific rules required will be displayed
# on the plugin status page once Google SEO URL is enabled.
# -------------------------------------------------------------------
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://www.eromaniaonline.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]

#4
Buna, de 3 zile modific la fiserul htaccess, dar nu vrea! Oare ce are? Ce nu ii convine?
#5
La prima vedere pare în regulă, numai că văd că ai scos de pe server niște linii care erau deja în momentul în care ai instalat MyBB-ul.
Uite la noi cum arată :

Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# EXAMPLE .htaccess FOR MYBB WITH GOOGLE SEO URL
# -------------------------------------------------------------------
# This file is identical to MyBB's htaccess.txt example file,
# with rewrite rules for a standard Google SEO install added.
#
# Before using this file please make sure to:
#
#   - replace /MyBB/ with your forum folder, e.g. / or /forum/
#   - replace yoursite/MyBB with your forum URL
#   - name the file '.htaccess' (starting with the dot, no .txt)
#
# Alternatively you can add the required rewrite rules to your
# existing .htaccess, the specific rules required will be displayed
# on the plugin status page once Google SEO URL is enabled.
# -------------------------------------------------------------------

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

        # 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://mybb.ro/$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 Misc Pages
        RewriteRule ^m\-([^./]+).html$ misc.php?page=$1 [L,QSA,NC]

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

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

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

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

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

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

	<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/x-javascript text/css text/html text/xml
</IfModule>

Sper să te ajute!

LE : S-ar putea problema să fie de la lipsa liniei Options -MultiViews +FollowSymlinks -Indexes.

Users : collective term for those who use computers. Users are divided into three types : novice, intermediate and expert.
Novice users : people who are afraid that simply pressing a key might break their computer.
Intermediate users : people who don`t know how to fix their computer after they`ve just pressed a key that broke it.
Expert users : people who break other people`s computers.
#6
@Mihu Din pacate nu vrea sa functioneze.
#7
Dacă ești dispus să îmi trimiți un cont de cpanel și unul de admin și putea să mă uit eu.
Users : collective term for those who use computers. Users are divided into three types : novice, intermediate and expert.
Novice users : people who are afraid that simply pressing a key might break their computer.
Intermediate users : people who don`t know how to fix their computer after they`ve just pressed a key that broke it.
Expert users : people who break other people`s computers.
#8
(12-29-2012, 12:53 AM)Mihu Wrote: Dacă ești dispus să îmi trimiți un cont de cpanel și unul de admin și putea să mă uit eu.

Salut. am trimis datele prin PM.
#9
Voi intra în seara asta. Sper să o rezolv!
Users : collective term for those who use computers. Users are divided into three types : novice, intermediate and expert.
Novice users : people who are afraid that simply pressing a key might break their computer.
Intermediate users : people who don`t know how to fix their computer after they`ve just pressed a key that broke it.
Expert users : people who break other people`s computers.
#10
Ok.
1.Trebuia să modifici fișierul htaccess din directorul forums, nu de alta dar tu în directorul părinte a lui forums ai un fișier htaccess deja care îți face redirecționarea pentru orice link de forma http://eromaniaonline.com/ORICE către http://eromaniaonline.com/forums/. Deci e normal că dacă tu accesezi din browser ceva de genul http://eromaniaonline.com/Thread... să te rediecționeze numai către pagina de index.
2.În directorul forums fișierul avea numele htaccess și nu .htaccess așa cum trebuie! Deia orice modificare pe care o aduceai acolo o făceai fără a observa o schimbare. Ți-am modificat eu acolo, numai că acum primești Internal Server Error (500). Problema s-ar putea să fie de la host. Încearcă să utilizezi SEO-ul implicit de la MyBB să vezi dacă merge. Dacă nu merge atunci e o problemă cu hostul.
Te sfătuiesc dacă tot face pentru orice link redirecționare către directorul forums, să instalezi platforma MyBB nu în forums ci direct în directorul părinte. Așa de complici degeaba.
Users : collective term for those who use computers. Users are divided into three types : novice, intermediate and expert.
Novice users : people who are afraid that simply pressing a key might break their computer.
Intermediate users : people who don`t know how to fix their computer after they`ve just pressed a key that broke it.
Expert users : people who break other people`s computers.


Forum Jump:


Users browsing this thread: 1 Guest(s)