• Resolved Cenk ?nsoy

    (@cenkonsoy)


    Hey!

    My forum adres is working like a charm but the posts etc. are not seem as a new link on debuggers.

    normaly it should end with a / but it doesn’t on my system.

    For an example, my posts are presented as:

    /forum-bolumu?view=forum&id=101
    but it should be /forum-bolumu/?view=forum&id=101

    I couldn’t get where is the missing part for this error?
    This error makes my links seem as one link in debuggers and test tools for link maps.

    Thanks.

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter Cenk ?nsoy

    (@cenkonsoy)

    I really need some support for this issue because I’m newly building my posts and before Google indexes my pages, I need to have this issue resolved ??

    Plugin Author Asgaros

    (@asgaros)

    Hello @cenkonsoy

    Can you check and re-save your WordPress permalink-settings to ensure that there is a / at the end of the URLs? In my test-installations everything is working fine, see this link as an example:

    https://www.asgaros.de/support/?view=thread&id=87

    On my forum the absence of a trailing slash after the forum slug results in a redirect to the url with the trailing slash added. The issue the OP raised caught my attention as either format (xxx/ = directory, otherwise xxx is a file) will be properly indexed but the site should render url’s and any canonical the same format through out simply to avoid content duplicate indexing which is an SEO concern only.

    Beyond the advice given check or re-apply the default .htaccess generated by WP and might be modified by cache/SEO plugins, and the redirect behavior I noted earlier should occur.

    Here’s my .htaccess noting I use latest WP and Comet Cache Pro/All in One SEO and SSL forced for all pages:

    # BEGIN Comet Cache WmVuQ2FjaGU (the WmVuQ2FjaGU marker is required for Comet Cache; do not remove)
    
    # Enable GZIP compression.
    <IfModule deflate_module>
      <IfModule filter_module>
        AddOutputFilterByType DEFLATE text/plain text/html
        AddOutputFilterByType DEFLATE text/xml application/xml application/xhtml+xml application/xml-dtd
        AddOutputFilterByType DEFLATE application/rdf+xml application/rss+xml application/atom+xml image/svg+xml
        AddOutputFilterByType DEFLATE text/css text/javascript application/javascript application/x-javascript
        AddOutputFilterByType DEFLATE font/opentype application/font-otf application/x-font-otf
        AddOutputFilterByType DEFLATE font/truetype application/font-ttf application/x-font-ttf
      </IfModule>
    </IfModule>
    
    # Enable browser caching.
    FileETag mtime size
    
    <IfModule expires_module>
      ExpiresActive on
      ExpiresDefault "access plus 1 week"
    </IfModule>
    
    # Force a trailing slash on all virtual requests (except WP admin area).
    <IfModule rewrite_module>
      RewriteEngine On
      RewriteBase /
    
      # If not a real file or directory.
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
    
      # Not a part of the WP admin area.
      RewriteCond %{REQUEST_URI} !(?:^|/)wp\-admin(?:/|$)
    
      # Not a REST request, which never redirects.
      RewriteCond %{REQUEST_URI} !(?:^|/)wp-json(?:/|$)
    
      # If there is no trailing slash.
      RewriteCond %{REQUEST_URI} !/$
    
      # Force a trailing slash on all virtual requests.
      RewriteRule ^(.*)$ $1/ [QSA,L,R=301]
    </IfModule>
    
    # END Comet Cache WmVuQ2FjaGU
    
    #AddHandler mod-fcgid .php
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress
    
    # SSL #
    RewriteEngine on
    RewriteCond %{REQUEST_SCHEME} =http
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
    # HSTS SSL #
    Header set Strict-Transport-Security "max-age=31536000" env=HTTPS
    
    Thread Starter Cenk ?nsoy

    (@cenkonsoy)

    My problem continues sadly.
    I just checked out the / problem and solved as your advices but all debuggers like facebook and etc are presenting my forum pages as the same main page.

    I am worried about my indexes, non of outer websites see my forum links as seperated pages they all see the main page..

    Please i need some help.

    As you did not include a full URL to test with domain so I can verify your .htaccess having the redirect directives enabled, my only comment at this point is to assume you did, so if true your webhost does not support either .htaccess or mod_rewrite. If it is redirecting then the tools you mentioned should work since this is a SERVER SIDE redirect via your web server. Test it manually.

    Thread Starter Cenk ?nsoy

    (@cenkonsoy)

    Everyting seems fine with the other plugins as bbpress or something but the url structure of asgaros having trouble with the debuggers sadly.

    I am awaiting for author’s advices immediately asap to resolve the issue.
    Thanks.

    P.S. You can check it out here

    • This reply was modified 7 years, 10 months ago by Cenk ?nsoy.
    Plugin Author Asgaros

    (@asgaros)

    I just visited the sites and it shows
    https://www.biyolojigunlugu.com/forum/?view=forum&id=103
    instead of
    https://www.biyolojigunlugu.com/forum?view=forum&id=103

    So you have already fixed the problem?

    Thread Starter Cenk ?nsoy

    (@cenkonsoy)

    I already had mentioned that / problem resolved but my posts are not shown as seperated posts on debuggers, they all see the same main forum page as one page.

    Non of my pages are presented as different posts or comments on social media.

    Please for an example you can check my pages on facebook debuggers.

    https://developers.facebook.com/tools/debug/og/object/

    The redirect is working and your forum behaving normally so could be as simple as cached versions of your forum prior to the solving are still being picked up. If true, in time this will settle out as caches expire, or look at those debuggers setup etc., I guess?

    Thread Starter Cenk ?nsoy

    (@cenkonsoy)

    All caches are cleard on web system and also hosting panels but nothing has changed at all.

    I want to start sharing my posts on social media but all pages are same while links are different :/

    I had double-triple checked the canonical settings are if active on any SEO plugins but nothing pushes my website for one link (canonical)

    Anyway, need an urgent support for the issue.
    Thanks.

    Thread Starter Cenk ?nsoy

    (@cenkonsoy)

    WOW!

    I had the issue solved.
    No matter which plugin or application pushes your system to use canonical url, you can release the canonical URL term with one code addition on functions.php on wp theme.

    For an example, this one is for Yoast Seo users.
    add_filter( 'wpseo_canonical', '__return_false' );

    • This reply was modified 7 years, 10 months ago by Cenk ?nsoy.
    • This reply was modified 7 years, 10 months ago by Cenk ?nsoy.
Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Canonical url and / ending’ is closed to new replies.