Phpbb fórum – hezké url

Vyřešeno3.83K zhlédnutíWebhosting
0

Dobrý den,

chci si na svém fóru https://pc-lecebna.cz udělat hezké url, ale i při povolení v administraci fóra a povolení v .htaccess stále nic. Nechápu to proč to stále nejede. Může se mi někdo podívat do mého .htaccess, ať vím, jestli není chyba právě tam? Děkuji moc! 🙂

Mé .htaccess:

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R,QSA,L]
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
 #
# Uncomment the statement below if URL rewriting doesn't
# work properly. If you installed phpBB in a subdirectory
# of your site, properly set the argument for the statement.
# e.g.: if your domain is test.com and you installed phpBB
# in http://www.test.com/phpBB/index.php you have to set
# the statement RewriteBase /phpBB/
#
#RewriteBase /
 #
# 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]
 #
# 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]
 #
# If symbolic links are not already being followed,
# uncomment the line below.
# http://anothersysadmin.wordpress.com/2008/06/10/mod_rewrite-forbidden-403-with-apache-228/
#
#Options +FollowSymLinks
</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>
 RewriteCond %{HTTPS} off
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Header always set Strict-Transport-Security: "max-age=31536000" "expr=%{HTTPS} == 'on'"
Header always set Referrer-Policy: "strict-origin-when-cross-origin"
Header always set Content-Security-Policy: block-all-mixed-content;
Header always set X-Frame-Options "SAMEORIGIN"
Header always set X-Xss-Protection "1; mode=block"
Header always set X-Content-Type-Options "nosniff"
Header always set Expect-CT max-age=0"
Header always set Feature-Policy "accelerometer *; ambient-light-sensor *; autoplay *; camera *; encrypted-media *; fullscreen *; geolocation *; gyroscope *; magnetometer *; microphone *; midi *; payment *; picture-in-picture *; speaker *; sync-xhr *; usb *; vr *"

Role: Zákazník
Otázka je uzamčena pro nové odpovědi.
RM130195 Vybral nejlepší odpověď 17. 10. 2019
0

TM65694: No přesně dle návodu a dělá to tohle i s .htaccess od wedosu.

Role: Zákazník
TJ285257 publikoval nový komentář 20. 5. 2023
Prohlížíte 1 ze 2 odpovědí, klikněte zde pro zobrazení všech odpovědí.