[ABD] URL Rewriting (SEO URLs)

Any abandoned Extensions will be moved to this forum.

WARNING: Extensions in this forum are not currently being supported or maintained by the original Extension author. Proceed at your own risk.
Forum rules
IMPORTANT: Extension Development Forum rules

WARNING: Extensions in this forum are not currently being supported nor updated by the original Extension author. Proceed at your own risk.
Asphunter
Registered User
Posts: 21
Joined: Wed Sep 28, 2016 1:14 pm

Re: [DEV] URL Rewriting (SEO URLs)

Post by Asphunter » Sat Nov 05, 2016 8:43 pm

Thanks for this extension.

I'm having 404 error though.

My forum is in domain.com and forum files are in the folder phpbb3. The domain is pointing to the phpbb3 folder directly.

I have tried both:

RewriteBase /phpbb3

and

RewriteBase /

and always getting 404 error?

Asphunter
Registered User
Posts: 21
Joined: Wed Sep 28, 2016 1:14 pm

Re: [DEV] URL Rewriting (SEO URLs)

Post by Asphunter » Sun Nov 06, 2016 8:53 am

Any ideas guys?
What else can be causing 404 error?

User avatar
tas2580
Registered User
Posts: 295
Joined: Wed May 30, 2007 1:56 am
Location: Stuttgart, Germany
Contact:

Re: [DEV] URL Rewriting (SEO URLs)

Post by tas2580 » Mon Nov 07, 2016 3:16 pm

Can you send me a PM with your htaccess?

cichy_ludek
Registered User
Posts: 71
Joined: Fri Jun 17, 2016 12:31 pm

Re: [DEV] URL Rewriting (SEO URLs)

Post by cichy_ludek » Mon Nov 07, 2016 6:47 pm

tas - can you answer me? It is "simple" possible, to call you method to create link in other extensions? How?

pioneerwebsites
Registered User
Posts: 8
Joined: Fri Nov 04, 2016 1:00 am

Re: [DEV] URL Rewriting (SEO URLs)

Post by pioneerwebsites » Mon Nov 07, 2016 8:53 pm

Tas, thank you for this extension!

I upgraded from 3.1.9 to 3.1.10 (both via Installatron and manually) and the .htaccess file is replaced, therefore the board fails with errors like:
No route found for "GET /tech-talk-f5/"

So do I have to manually replace the extension's rewrite rules in .htaccess file after every update? Or perhaps only after updates that affect the .htaccess file? (Or do they all replace it, regardless?)

Doesn't phpBB respect .htaccess file modifications when updating? Does the extension need to do something to restore itself after an update?

I'm obviously not a phpBB developer, but the update cycle seems rather ridiculous if manual edits are required to maintain existing extensions.

pioneerwebsites
Registered User
Posts: 8
Joined: Fri Nov 04, 2016 1:00 am

Re: [DEV] URL Rewriting (SEO URLs)

Post by pioneerwebsites » Mon Nov 07, 2016 9:23 pm

There is an interesting answer from Brf:
viewtopic.php?p=14556201#p14556201
Extensions are not supposed to change anything in the core files.

Asphunter
Registered User
Posts: 21
Joined: Wed Sep 28, 2016 1:14 pm

Re: [DEV] URL Rewriting (SEO URLs)

Post by Asphunter » Wed Nov 09, 2016 10:10 am

tas2580 wrote:Can you send me a PM with your htaccess?

Have you got it?

User avatar
tas2580
Registered User
Posts: 295
Joined: Wed May 30, 2007 1:56 am
Location: Stuttgart, Germany
Contact:

Re: [DEV] URL Rewriting (SEO URLs)

Post by tas2580 » Thu Nov 10, 2016 12:59 am

cichy_ludek wrote:tas - can you answer me? It is "simple" possible, to call you method to create link in other extensions? How?

Code: Select all

        if (class_exists('\tas2580\seourls\event\base'))
        {
            $seourl = new \tas2580\seourls\event\base($this->auth, $this->config, $this->phpbb_root_path);

            $forum_link = $seourl->generate_forum_link($forum_id, $forum_name, $start);
            $topic_link = $seourl->generate_topic_link($forum_id, $forum_name, $topic_id, $topic_title, $start);
            $link_to_last_post = $seourl->generate_lastpost_link($replies, $topic_link);
        } 
pioneerwebsites wrote:So do I have to manually replace the extension's rewrite rules in .htaccess file after every update?
Yes if you overwrite your htacces file with an update.
Extensions are not supposed to change anything in the core files.
But this is the only one way to rewrite URLs. I have tried to use symfony routing for that. Its no problem to route to an controller but in the controller I can't just include viewforum.php because of define('IN_PHPBB', true);
Also it's not possible to use an URL as target in symfony routes.

Without changes in htaccess it's not possible in phpBB to change URLs to forums/topics until phpBB uses no classes for viewforum/viewtopic.
In this case "Extensions are not supposed to change anything in the core files" is just not compatible to phpBB because viewforum/viewtopic are not callable from symfony routes.

About solutions to that problem I would be grateful.
Asphunter wrote:
tas2580 wrote:Can you send me a PM with your htaccess?

Have you got it?
Yes, I will take a look at it now.

cichy_ludek
Registered User
Posts: 71
Joined: Fri Jun 17, 2016 12:31 pm

Re: [DEV] URL Rewriting (SEO URLs)

Post by cichy_ludek » Thu Nov 10, 2016 8:25 am

Great! This is exactly what I need. THANK YOU!! :D

chfs
Registered User
Posts: 231
Joined: Mon Feb 04, 2013 10:01 am

Re: [DEV] URL Rewriting (SEO URLs)

Post by chfs » Sun Nov 13, 2016 8:53 pm

Will in SEO Viewprofile? Thank you :shock:
I'm sorry for my english. :?

Asphunter
Registered User
Posts: 21
Joined: Wed Sep 28, 2016 1:14 pm

Re: [DEV] URL Rewriting (SEO URLs)

Post by Asphunter » Thu Nov 17, 2016 9:50 am

Can someone help please? I still can't get it working despite my htaccess files being ok.
What are other reasons new, rewritten links show 404 error?

User avatar
Austeyr
Registered User
Posts: 22
Joined: Thu Jun 23, 2016 5:48 am
Location: Australia
Name: Randell Monaghan
Contact:

Re: [DEV] URL Rewriting (SEO URLs)

Post by Austeyr » Fri Dec 02, 2016 2:25 am

Does this really help SEO, i love the extension and looked for this for ages. but now after looking it seems this would be harder to remember and share. I think id rather the old Urls.

Im aware no one is forcing me to use this extension, Id just like to know the benefits of using this as to using the original url structure.

Personally i think the old structure ( Example : viewtopic.php?f=2&t=4 ) is easier to share via social media, it's shorter, it looks less spammy when members write random rubbish in titles. I do understand that from a SEO point of view having your keywords in your title, URL and post makes for a better SEO score of a post, but im not sure how important it really is and weather it really over rules the fact the URL will instally be double the length making it harder to share. If your only going to shorten your link on social media it kinda defeats the purpose of installing this mod.

I don't know im wondering what other people think.

Anyway great mod glad someone made it i see there will be a lot of SEO excited people out there really wanting this installed.
My phpBB Forum Oxaus Community Forum.
It's more than just a forum. you need to see this.

My Sons phpBB Forum Happy Forum.
He's only 6 Months Old. World's Youngest Webmaster ?

Fav Quote :
The only thing necessary for the triumph of evil is that good men do nothing.
~
Edmund Burke

aolee
Registered User
Posts: 1
Joined: Sat Dec 03, 2016 12:54 pm

Re: [DEV] URL Rewriting (SEO URLs)

Post by aolee » Sat Dec 03, 2016 12:58 pm

Just wish to share how I managed to make the re-write of this plugin work on my nginx conf http://adrian-lee.com/phpbb-3-2-nginx-config/

BlackGirl
Registered User
Posts: 25
Joined: Thu Feb 24, 2011 9:52 pm

Re: [DEV] URL Rewriting (SEO URLs)

Post by BlackGirl » Thu Dec 08, 2016 5:14 pm

Good Afternoon,

I've installed this extension and this message pops up: *ERROR*
it seems It is incompatible with Top Five extension
viewtopic.php?f=536&t=2295011
Image

Could you tell me how to have this problem solved? Thank you for the attention given

Yours faithfully

archersites
Registered User
Posts: 6
Joined: Fri Dec 09, 2016 8:22 am

Re: [DEV] URL Rewriting (SEO URLs)

Post by archersites » Sat Dec 10, 2016 9:17 am

tas2580 wrote:New Update. Added a XML-Sitemap.
Thanks for all your work here - just wondering, where can I find the XML Sitemap?

Locked

Return to “Abandoned Extensions”

Who is online

Users browsing this forum: No registered users and 4 guests