Thread Rating:
  • 4 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[For 1.8] Google SEO 1.8.3
#91
File: inc/plugins/google_seo/sitemap.php (Line no. 88)
Message
Invalid argument supplied for foreach()
What goes around comes around
Reply
#92
Hi there, url redirect's are not working for me. I just installed my mybb copy on ovh vps (ufw/iptables off), php 7.3 & debian 8.  I checked documentation, it can't help me :/. That's how my .htaccess file looks:
RewriteEngine on

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

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

# Google SEO 404:
ErrorDocument 404 /forum/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]
What should i check/do?
Thanks!

Edit: I checked database, all entries are there.
Reply
#93
This user has been denied support. This user has been denied support.
Quote:url redirect's are not working for me

Your webserver has to be configured to allow URL rewrites. No idea how to help you there.
Reply
#94
Hello, I hope you can help me

I installed the plugin and configured it. Everything works except these links.

To create a new topic within a forum
https://forotrader.com/foro/newthread.php?fid=39

To get into a topic in a forum
https://forotrader.com/foro/EURO-STOXX-50
https://forotrader.com/foro/tema/Tester (not working)
https://forotrader.com/tema/Tester (if it works)

These are the only links I've seen that do not work, should we include something else in the .htcacces?

Sorry for the English, I use google translator.
Reply
#95
This user has been denied support. This user has been denied support.
use - instead of /

virtual directory structure ( url scheme with / in it ) comes with problems:

https://github.com/frostschutz/mybb-goog...-structure

https://github.com/frostschutz/MyBB-Goog...t-14617072
Reply
#96
(03-05-2019, 10:37 AM)El Wrote: uso de frostschutz - en lugar de /

estructura de directorio virtual (esquema url con / in it) viene con problemas:

https://github.com/frostschutz/mybb-goog...-structure

https://github.com/ frostschutz / MyBB-Google-SEO / issues / 43 # issuecomment-14617072


Problem solved thank you very much
Reply
#97
So from the looks of it, / is not recommended?

I came from vBulletin 4 and it has the same / infrastructure without any problems. With links such as:

- /forum/forum/vbulletin-announcements/vbulletin-announcements_aa/4404840-introducing-phar
- /forum/member/868-wayne-luke

Preventing advertisement :p, so using the ending links only.

So is this a limitation by the Google SEO system?

I'm trying to use the / and for some it works, while others it doesn't. EG, for /users/, it appears to work though in profiles if a person is reason a thread its linking the user to /user/thread/threadname. Obviously, the user in the link is breaking stuff.
Reply
#98
This user has been denied support. This user has been denied support.
(03-13-2019, 07:56 PM)Skyrider Wrote: So is this a limitation by the Google SEO system?

Originally it's a MyBB limitation. If you go into the MyBB core file and change thread-x.html to thread/x.html you have the same issue.

It was a design choice for Google SEO to be a minimally invasive plugin, so it merely builds upon the core URL system of MyBB, without changing core behavior other than replacing random number ID with a subject string.

A more aggressive approach would have been for Google SEO to introduce its own routing system (which MyBB simply doesn't have) but that just wasn't the goal of it.
Reply
#99
(03-14-2019, 01:02 AM)frostschutz Wrote: A more aggressive approach would have been for Google SEO to introduce its own routing system (which MyBB simply doesn't have) but that just wasn't the goal of it.

A request router is one of our future goals for MyBB 1.10, I really hope we include some of the innovations found in your plugin into the core too. Smile
Reply
I searched, but didn't find an answer to this. Sorry if it is explained somewhere.

When you move a thread and leave a redirect, an identifier is added to the new URL. If the original thread was Thread-My-Thread and you move the thread, the redirect will be Thread-My-Thread and the new link might be Thread-My-Thread--1234

My question is can I delete the redirect and somehow make the new URL the same as it used to be? If I go to the google_seo table, find the thread and adjust it there (after deleting the redirect) will that cause any issues?

Thanks in advance.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)