Forum dla administratorów stron WWW i developerów

Witaj!

AdminZone.pl to miejsce w którym możesz dowiedzieć się jak szybko i skutecznie wypromować swoją stronę WWW, zachęcić użytkowników do wypowiadania się i aktywnego udziału w życiu takiej strony.
Dołącz do naszej społeczności aby w pełni korzystać z usług oferowanych przez AdminZone.pl
Zaloguj się
lub
Zarejestruj się
 
Awatar użytkownika
Lutmark
Użytkownik
Posty: 19
Rejestracja: 25 gru 2017, 14:31

SEO nie działa na 3.2.3

Autor tematu

05 lis 2018, 11:31

Wiecie może dlaczego ta wtyczka nie działa na 3.2.3 ? https://github.com/phpbb-seo/usu


 
Awatar użytkownika
Macsch15
Administrator
Posty: 1968
Rejestracja: 10 sie 2012, 16:12
Lokalizacja: Polska
Kontaktowanie:

Re: SEO nie działa na 3.2.3

06 lis 2018, 15:10

Dlaczego twierdzisz że nie działa? Jest jakiś błąd? Autor wtyczki zapewnia że ona działa na phpBB 3.2.


 
Awatar użytkownika
Lutmark
Użytkownik
Posty: 19
Rejestracja: 25 gru 2017, 14:31

Re: SEO nie działa na 3.2.3

Autor tematu

07 lis 2018, 6:33

Macsch15 napisał/a:
Dlaczego twierdzisz że nie działa? Jest jakiś błąd? Autor wtyczki zapewnia że ona działa na phpBB 3.2.

Nie działa, w sensie po wrzuceniu do katalogu ext nie pojawia się w zakładce rozszerzenia.


 
Awatar użytkownika
Macsch15
Administrator
Posty: 1968
Rejestracja: 10 sie 2012, 16:12
Lokalizacja: Polska
Kontaktowanie:

Re: SEO nie działa na 3.2.3

07 lis 2018, 23:20

Jak wygląda układ katalogów w folderze /ext dla tego rozszerzenia?
Ma być dokładnie /ext/phpbbseo/usu, w folderze usu ma być zawartość rozszerzenia, czyli takie pliki jak core.php czy composer.json.


 
Awatar użytkownika
Lutmark
Użytkownik
Posty: 19
Rejestracja: 25 gru 2017, 14:31

Re: SEO nie działa na 3.2.3

Autor tematu

08 lis 2018, 9:36

Działa. Ale jest problem bo gdy kliknę na tytuł posta bezpośrednio to pojawia się komunikat że nie żądanej strony.


 
Awatar użytkownika
Lutmark
Użytkownik
Posty: 19
Rejestracja: 25 gru 2017, 14:31

Re: SEO nie działa na 3.2.3

Autor tematu

08 lis 2018, 10:52

Jest tak.

cats.jpg
Nie masz wymaganych uprawnień, aby zobaczyć pliki załączone do tego posta.


 
Awatar użytkownika
Macsch15
Administrator
Posty: 1968
Rejestracja: 10 sie 2012, 16:12
Lokalizacja: Polska
Kontaktowanie:

Re: SEO nie działa na 3.2.3

08 lis 2018, 16:38

Musisz mieć odpowiednio skonfigurowany plik .htaccess.


 
Awatar użytkownika
Lutmark
Użytkownik
Posty: 19
Rejestracja: 25 gru 2017, 14:31

Re: SEO nie działa na 3.2.3

Autor tematu

09 lis 2018, 6:44

Macsch15 napisał/a:
Musisz mieć odpowiednio skonfigurowany plik .htaccess.

Domyślam się ale nie wiem jak to ustawić.


 
Awatar użytkownika
Lutmark
Użytkownik
Posty: 19
Rejestracja: 25 gru 2017, 14:31

Re: SEO nie działa na 3.2.3

Autor tematu

09 lis 2018, 8:02

Macsch15 napisał/a:
Musisz mieć odpowiednio skonfigurowany plik .htaccess.

Tam są dwa kody.

# Sample nginx configuration file for phpBB.
# Global settings have been removed, copy them
# from your system's nginx.conf.
# Tested with nginx 0.8.35.

# If you want to use the X-Accel-Redirect feature,
# add the following to your config.php.
#
#  define('PHPBB_ENABLE_X_ACCEL_REDIRECT', true);
#
# See http://wiki.nginx.org/XSendfile for the details
# on X-Accel-Redirect.
http {
     # Compression - requires gzip and gzip static modules.
     gzip on;
     gzip_static on;
     gzip_vary on;
     gzip_http_version 1.1;
     gzip_min_length 700;

     # Compression levels over 6 do not give an appreciable improvement
     # in compression ratio, but take more resources.
     gzip_comp_level 6;

     # IE 6 and lower do not support gzip with Vary correctly.
     gzip_disable "msie6";
     # Before nginx 0.7.63:
     #gzip_disable "MSIE [1-6]\.";

     # Catch-all server for requests to invalid hosts.
     # Also catches vulnerability scanners probing IP addresses.
     server {
          # default specifies that this block is to be used when
          # no other block matches.
          listen 80 default;

          server_name bogus;
          return 444;
          root /var/empty;
     }

     # The actual board domain.
     server {
          #listen 80;
          server_name analogus.eu;

          root /;

          location / {
               # phpbb uses index.htm
               index index.php index.html index.htm;

               # multi domain ssl aware canonical hostname
               # if ($host != analogus.eu) {
               #      rewrite ^ $scheme://analogus.eu$request_uri permanent;
               # }

               # DO NOT GO FURTHER IF THE REQUESTED FILE / DIR DOES EXISTS
               if (-e $request_filename) {
                    break;
               }
               # FORUM INDEX REWRITERULE WOULD STAND HERE IF USED. "forum" REQUIRES TO BE SET AS FORUM INDEX
               # rewrite ^/forum\.html$ /index.php last;
               # FORUM ALL MODES
               rewrite ^/(forum|[a-z0-9_-]*-f)([0-9]+)/?(page([0-9]+)\.html)?$ /viewforum.php?f=$2&start=$4 last;
               # TOPIC WITH VIRTUAL FOLDER ALL MODES
               rewrite ^/(forum|[a-z0-9_-]*-f)([0-9]+)/(topic|[a-z0-9_-]*-t)([0-9]+)(-([0-9]+))?\.html$ /viewtopic.php?f=$2&t=$4&start=$6 last;
               # TOPIC WITHOUT FORUM ID & DELIM ALL MODES
               rewrite ^/([a-z0-9_-]*)/?(topic|[a-z0-9_-]*-t)([0-9]+)(-([0-9]+))?\.html$ /viewtopic.php?forum_uri=$1&t=$3&start=$5 last;
               # PROFILES ALL MODES WITH ID
               rewrite ^/(member|[a-z0-9_-]*-u)([0-9]+)\.html$ /memberlist.php?mode=viewprofile&u=$2 last;
               # USER MESSAGES ALL MODES WITH ID
               rewrite ^/(member|[a-z0-9_-]*-u)([0-9]+)-(topics|posts)(-([0-9]+))?\.html$ /search.php?author_id=$2&sr=$3&start=$5 last;
               # GROUPS ALL MODES
               rewrite ^/(group|[a-z0-9_-]*-g)([0-9]+)(-([0-9]+))?\.html$ /memberlist.php?mode=group&g=$2&start=$4 last;
               # POSTS
               rewrite ^/post([0-9]+)\.html$ /viewtopic.php?p=$1 last;
               # ACTIVE TOPICS
               rewrite ^/active-topics(-([0-9]+))?\.html$ /search.php?search_id=active_topics&start=$2&sr=topics last;
               # UNANSWERED TOPICS
               rewrite ^/unanswered(-([0-9]+))?\.html$ /search.php?search_id=unanswered&start=$2&sr=topics last;
               # NEW POSTS
               rewrite ^/newposts(-([0-9]+))?\.html$ /search.php?search_id=newposts&start=$2&sr=topics last;
               # UNREAD POSTS
               rewrite ^/unreadposts(-([0-9]+))?\.html$ /search.php?search_id=unreadposts&start=$2 last;
               # THE TEAM
               rewrite ^/the-team\.html$ /memberlist.php?mode=team last;
               # HERE IS A GOOD PLACE TO ADD OTHER PHPBB RELATED REWRITERULES
               
               # FORUM WITHOUT ID & DELIM ALL MODES
               # THESE LINES MUST BE LOCATED AT THE END OF YOUR HTACCESS TO WORK PROPERLY
               if (!-e $request_filename) {
                    rewrite ^/([a-z0-9_-]+)/?(page([0-9]+)\.html)?$ /viewforum.php?forum_uri=$1&start=$3 last;
               }
               # FIX RELATIVE PATHS : FILES
               rewrite ^/(style\.php|ucp\.php|mcp\.php|faq\.php|posting\.php|download/file\.php|report\.php|adm/index\.php|cron\.php)$ /$1 permanent;
               # FIX RELATIVE PATHS : IMAGES
               rewrite ^/(styles/.*|images/.*|assets/.*|ext/.*)$ /$1 permanent;
               #
               # The following 3 lines will rewrite URLs passed through the front controller
               # to not require app.php in the actual URL. In other words, a controller is
               # by default accessed at /app.php/my/controller, but can also be accessed at
               # /my/controller
               #
               if (!-e $request_filename) {
                    rewrite ^/(.*)$ /app.php last;
               }

          }
          # Deny access to internal phpbb files.
          location ~ /(config\.php|common\.php|includes|cache|files|store|images/avatars/upload) {
               deny all;
               # deny was ignored before 0.8.40 for connections over IPv6.
               # Use internal directive to prohibit access on older versions.
               internal;
          }

          # Deny access to version control system directories.
          location ~ /\.svn|/\.git {
               deny all;
               internal;
          }
     }

     # If running php as fastcgi, specify php upstream.
     upstream php {
          server unix:/tmp/php.sock;
     }
}

            


oraz

<IfModule mod_rewrite.c>
     # You may need to un-comment the following lines
     # Options +FollowSymlinks
     # To make sure that rewritten dir or file (/|.html) will not load dir.php in case it exist
     # Options -MultiViews
     # REMEBER YOU ONLY NEED TO STARD MOD REWRITE ONCE
     RewriteEngine On

     # Uncomment the statement below if you want to make use of
     # HTTP authentication and it does not already work.
     # This could be required if you are for example using PHP via Apache CGI.
     # RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]

     # REWRITE BASE
     RewriteBase /

     # HERE IS A GOOD PLACE TO FORCE CANONICAL DOMAIN
     # Define fully qualified ssl aware protocol
     # RewriteCond %{SERVER_PORT}s ^(443(s)|[0-9]+s)$
     # RewriteRule ^.*$ - [env=HttpFullProto:http%2://]
     # RewriteCond %{HTTP_HOST} !^analogus\.eu$ [NC]
     # RewriteRule ^(.*)$ %{ENV:HttpFullProto}analogus.eu/$1 [QSA,L,R=301]

     # DO NOT GO FURTHER IF THE REQUESTED FILE / DIR DOES EXISTS
     RewriteCond %{REQUEST_FILENAME} -f [OR]
     RewriteCond %{REQUEST_FILENAME} -d
     RewriteRule . - [L]
     # FORUM INDEX REWRITERULE WOULD STAND HERE IF USED. "forum" REQUIRES TO BE SET AS FORUM INDEX
     # RewriteRule ^forum\.html$ /index.php [QSA,L,NC]
     # FORUM ALL MODES
     RewriteRule ^(forum|[a-z0-9_-]*-f)([0-9]+)/?(page([0-9]+)\.html)?$ /viewforum.php?f=$2&start=$4 [QSA,L,NC]
     # TOPIC WITH VIRTUAL FOLDER ALL MODES
     RewriteRule ^(forum|[a-z0-9_-]*-f)([0-9]+)/(topic|[a-z0-9_-]*-t)([0-9]+)(-([0-9]+))?\.html$ /viewtopic.php?f=$2&t=$4&start=$6 [QSA,L,NC]
     # TOPIC WITHOUT FORUM ID & DELIM ALL MODES
     RewriteRule ^([a-z0-9_-]*)/?(topic|[a-z0-9_-]*-t)([0-9]+)(-([0-9]+))?\.html$ /viewtopic.php?forum_uri=$1&t=$3&start=$5 [QSA,L,NC]
     # PROFILES ALL MODES WITH ID
     RewriteRule ^(member|[a-z0-9_-]*-u)([0-9]+)\.html$ /memberlist.php?mode=viewprofile&u=$2 [QSA,L,NC]
     # USER MESSAGES ALL MODES WITH ID
     RewriteRule ^(member|[a-z0-9_-]*-u)([0-9]+)-(topics|posts)(-([0-9]+))?\.html$ /search.php?author_id=$2&sr=$3&start=$5 [QSA,L,NC]
     # GROUPS ALL MODES
     RewriteRule ^(group|[a-z0-9_-]*-g)([0-9]+)(-([0-9]+))?\.html$ /memberlist.php?mode=group&g=$2&start=$4 [QSA,L,NC]
     # POSTS
     RewriteRule ^post([0-9]+)\.html$ /viewtopic.php?p=$1 [QSA,L,NC]
     # ACTIVE TOPICS
     RewriteRule ^active-topics(-([0-9]+))?\.html$ /search.php?search_id=active_topics&start=$2&sr=topics [QSA,L,NC]
     # UNANSWERED TOPICS
     RewriteRule ^unanswered(-([0-9]+))?\.html$ /search.php?search_id=unanswered&start=$2&sr=topics [QSA,L,NC]
     # NEW POSTS
     RewriteRule ^newposts(-([0-9]+))?\.html$ /search.php?search_id=newposts&start=$2&sr=topics [QSA,L,NC]
     # UNREAD POSTS
     RewriteRule ^unreadposts(-([0-9]+))?\.html$ /search.php?search_id=unreadposts&start=$2 [QSA,L,NC]
     # THE TEAM
     RewriteRule ^the-team\.html$ /memberlist.php?mode=team [QSA,L,NC]
     # HERE IS A GOOD PLACE TO ADD OTHER PHPBB RELATED REWRITERULES
     
     # FORUM WITHOUT ID & DELIM ALL MODES
     # THESE LINES MUST BE LOCATED AT THE END OF YOUR HTACCESS TO WORK PROPERLY
     RewriteCond %{REQUEST_FILENAME} !-f
     RewriteCond %{REQUEST_FILENAME} !-d
     RewriteRule ^([a-z0-9_-]+)/?(page([0-9]+)\.html)?$ /viewforum.php?forum_uri=$1&start=$3 [QSA,L,NC]
     # FIX RELATIVE PATHS : FILES
     RewriteRule ^(style\.php|ucp\.php|mcp\.php|faq\.php|posting\.php|download/file\.php|report\.php|adm/index\.php|cron\.php)$ /$1 [QSA,L,NC,R=301]
     # FIX RELATIVE PATHS : IMAGES
     RewriteRule ^(styles/.*|images/.*|assets/.*|ext/.*)$ /$1 [QSA,L,NC,R=301]
     #
     # The following 3 lines will rewrite URLs passed through the front controller
     # to not require app.php in the actual URL. In other words, a controller is
     # by default accessed at /app.php/my/controller, but can also be accessed at
     # /my/controller
     #
     RewriteCond %{REQUEST_FILENAME} !-f
     RewriteCond %{REQUEST_FILENAME} !-d
     RewriteRule ^(.*)$ /app.php [QSA,L]

</IfModule>

# With Apache 2.4 the "Order, Deny" syntax has been deprecated and moved from
# module mod_authz_host to a new module called mod_access_compat (which may be
# disabled) and a new "Require" syntax has been introduced to mod_authz_host.
# We could just conditionally provide both versions, but unfortunately Apache
# does not explicitly tell us its version if the module mod_version is not
# available. In this case, we check for the availability of module
# mod_authz_core (which should be on 2.4 or higher only) as a best guess.
<IfModule mod_version.c>
     <IfVersion < 2.4>
          <Files "config.php">
               Order Allow,Deny
               Deny from All
          </Files>
          <Files "common.php">
               Order Allow,Deny
               Deny from All
          </Files>
     </IfVersion>
     <IfVersion >= 2.4>
          <Files "config.php">
               Require all denied
          </Files>
          <Files "common.php">
               Require all denied
          </Files>
     </IfVersion>
</IfModule>
<IfModule !mod_version.c>
     <IfModule !mod_authz_core.c>
          <Files "config.php">
               Order Allow,Deny
               Deny from All
          </Files>
          <Files "common.php">
               Order Allow,Deny
               Deny from All
          </Files>
     </IfModule>
     <IfModule mod_authz_core.c>
          <Files "config.php">
               Require all denied
          </Files>
          <Files "common.php">
               Require all denied
          </Files>
     </IfModule>
</IfModule>

            


 
Awatar użytkownika
Macsch15
Administrator
Posty: 1968
Rejestracja: 10 sie 2012, 16:12
Lokalizacja: Polska
Kontaktowanie:

Re: SEO nie działa na 3.2.3

09 lis 2018, 16:14

Widzę że masz stronę na Apache więc powinieneś stworzyć plik .htaccess w głównym katalogu forum (o ile go nie ma) i wkleić w niego drugi podany przez Ciebie kod.


Kto jest online

Użytkownicy przeglądający to forum: Obecnie na forum nie ma żadnego zarejestrowanego użytkownika i 30 gości