Please or Register to create posts and topics.

Testers Wanted: SEO-friendly URLs

Page 1 of 2Next

Hello everyone,

the upcoming version 1.9 of Asgaros Forum finally comes with SEO-friendly URLs. The implementation of this feature requires a lot of big changes in the core of the plugin so there is a high risk for potential bugs. I am looking for testers who want to play around with the latest development version to ensure that the upcoming release is as stable as possible.

Some key points to focus on:

  • Are all links working when seo-friendly urls are enabled/disabled?
  • Are old links still working? (backward-compatibility)
  • Are the Google/Bing/etc links pointing to your forum topics still working?
  • Are the links working when the forum is located on a static front page?
  • Are the links/search/etc working when using shortcode-parameters?
  • Are the links still working when using special characters in topic-subjects (russian, chinese, etc)?

If you are interested in testing the latest-development version you can download it here.

I am looking forward for your feedback! 🙂

Thank you,

Thomas

Yworld has reacted to this post.
Yworld
If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!

Magnificent work!

I test and see the three canonical references

/forum/?view=thread&id=12

/forum/?view=topic&id=12

/forum/topic/ntcn/

Need one SEO-friendly , From the rest 301 redirects to this link. Then in Google will be all ok.

/forum/forum/pervyj-podforum-integratsiya/

/forum/topic/ntcn/

2 times, the name of the forum disappears

Hello @yworld

I will try to implement some redirects.

I think the word “forum” appears two times because the first time its the slug of the page on which your forum is located on. The second one is the name of the view. Basically the structure is as follow:

  • my-site.com/page-slug/view-name/title
  • example for forums: my-site.com/page-slug/forum/general-discussion
  • example for topics: my-site.com/page-slug/topic/new-topic-abc

Edit: So to be clear: In topics the forum-name does not appear in the url because otherwise this could break a lot of things. Assume a forum is called “members”. In this case the system cannot know if it should bring you to the forum called “members” or to the members-view. This is a decision to make the view-detection more simple because otherwise I would have to create blacklists for special slugs.

Yworld has reacted to this post.
Yworld
If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!
Quote from Asgaros on May 9, 2018, 7:18 pm

Hello @yworld

I will try to implement some redirects.

I think the word “forum” appears two times because the first time its the slug of the page on which your forum is located on. The second one is the name of the view. Basically the structure is as follow:

  • my-site.com/page-slug/view-name/title
  • example for forums: my-site.com/page-slug/forum/general-discussion
  • example for topics: my-site.com/page-slug/topic/new-topic-abc

Already figured out. Thank you 🙂

Redirect and everything will be ok. Otherwise there will be duplicates of pages, the search engines will punish

 

Hello @yworld

I implemented a check now which should do a 301-redirect if using an old URL. Can you have a look at the latest dev-version and check if its working fine? 🙂

https://github.com/Asgaros/asgaros-forum/archive/3df5c595a36e07f669de5c91fc38b55c45b3d770.zip

Yworld has reacted to this post.
Yworld
If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!

I test 🙂

It seems everything is fine!

HTTP/1.1 301 Moved Permanently

I checked all three url

does the redirect come with a slash at the end?

https://asgaros.com/support/topic/testers-wanted-seo-friendly-urls/
https://asgaros.com/support/topic/testers-wanted-seo-friendly-urls

 

If the slash is put in a snippet

 

function fix_slash( $string, $type )
{
global $wp_rewrite;
if ( $wp_rewrite->use_trailing_slashes == false )
{
    if ( $type != 'single' && $type != 'category' )
        return trailingslashit( $string );

    if ( $type == 'single' && ( strpos( $string, '.html/' ) !== false ) )
        return trailingslashit( $string );

    if ( $type == 'category' && ( strpos( $string, 'category' ) !== false ) )
    {
        $aa_g = str_replace( "/category/", "/", $string );
        return trailingslashit( $aa_g );
    }
    if ( $type == 'category' )
        return trailingslashit( $string );
}
return $string;
}
add_filter( 'user_trailingslashit', 'fix_slash', 55, 2 );

There will be two 301 I think ok. Not scary.

Page 1 of 2Next