Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Sign In
Not a member yet? Click here to register.

New v8.00.22 install permalinks not working.


Print Track
First of all, the installation of php-fusion v8.00.22 went smooth. Just used the English locale at setup. Here is the new v8 site: https://www.fritzbox-info.com
Still crawling around the admin pages and php code. All is familiar like the v7 version, but there are extra's. Nice! The error log stays clean!

Encountered just 1 problem so far I couldn't solve. And that is the permalinks. All permalinks are enabled. database site_seo says 1 for enabled but still no links are rewritten.
Any suggestions?

Below is my setup and .htaccess

PHP version 7.0.33
PHP interface fpm-fcgi
MySQL Server version 5.5.41-MariaDB
PHP-Fusion version 8.00.22
Apache/2.4.38
nginx/1.15.6

CodeDownload  
# Disable directory listing
Options -Indexes

# Force utf-8 charset
AddDefaultCharset UTF-8
AddCharset UTF-8 .html .css .js .svg .woff .woff2

# Security
ServerSignature Off

# Secure .htaccess file
<Files .htaccess>
 order allow,deny
 deny from all
</Files>

# Secure .inc files
<Files *.inc>
 Order allow,deny
 deny from all
</Files>

# Protect config.php
<Files config.php>
 order allow,deny
 deny from all
</Files>

# Cache images for 7 days to soften network load
<IfModule mod_headers.c>
 <filesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|swf|ttf|otf|woff|woff2|eot|svg)$">
 Header append Vary: Accept-Encoding
 Header set Cache-Control "max-age=2592000, public"
 </FilesMatch>
 <filesMatch "\.(css|js)$">
 Header set Cache-Control "max-age=604800, public"
 </FilesMatch>
 <filesMatch "\.(html|htm|php)$">
 Header set Cache-Control "max-age=1, private, must-revalidate"
 </FilesMatch>
</IfModule>

# Compress files
<ifModule mod_deflate.c>
 <filesMatch "\.(jpg|jpeg|png|gif|svg|css|js|x?html?|php)$">
 SetOutputFilter DEFLATE
 </filesMatch>
</ifModule>

# Block Nasty Bots
<IfModule mod_setenvifno.c>
 SetEnvIfNoCase ^User-Agent$ .*(craftbot|download|extract|stripper|sucker|ninja|clshttp|webspider|leacher|collector|grabber|webpictures) HTTP_SAFE_BADBOT
 SetEnvIfNoCase ^User-Agent$ .*(libwww-perl|aesop_com_spiderman) HTTP_SAFE_BADBOT
 SetEnvIfNoCase ^User-Agent$ .*(almaden|Anarchie|ASPSeek|attach|autoemailspider|BackWeb|Bandit|BatchFTP|BlackWidow|Bot|mailto:craftbot@yahoo.com|Buddy|bumblebee|CherryPicker|ChinaClaw|CICC|Collector|Copier|Crescent|Custo|DA|DIIbot|DISCo|DISCo\ Pump|Download\ Demon|Download\ Wonder|Downloader|Drip|DSurf15a|eCatch|EasyDL/2.99|EirGrabber|EmailCollector|EmailSiphon|EmailWolf|Express\ WebPictures|ExtractorPro|EyeNetIE|FileHound|FlashGet|GetRight|GetSmart|GetWeb!|gigabaz|Go\!Zilla|Go!Zilla|Go-Ahead-Got-It|gotit|Grabber|GrabNet|Grafula|grub-client|HMView|HTTrack|httpdown|ia_archiver|Image\ Stripper|Image\ Sucker|Indy*Library|InterGET|InternetLinkagent|Internet\ Ninja|InternetSeer.com|Iria|JBH*agent|JetCar|JOC\ Web\ Spider|JustView|larbin|LeechFTP|LexiBot|lftp|Link*Sleuth|likse|Link|LinkWalker|Mag-Net|Magnet|Mass\ Downloader|Memo|Microsoft.URL|MIDown\ tool|Mirror|Mister\ PiX|Mozilla.*Indy|Mozilla.*NEWT|Mozilla*MSIECrawler|MS\ FrontPage*|MSFrontPage|MSIECrawler|MSProxy|Navroad|NearSite|NetAnts|NetMechanic|NetSpider|Net\ Vampire|NetZIP|NICErsPRO|Ninja|Octopus|Offline\ Explorer|Offline\ Navigator|Openfind|PageGrabber|Papa\ Foto|pavuk|pcBrowser|Ping|PingALink|Pockey|psbot|Pump|QRVA|RealDownload|Reaper|Recorder|ReGet|Scooter|Seeker|Siphon|sitecheck.internetseer.com|SiteSnagger|SlySearch|SmartDownload|Snake|SpaceBison|sproose|Stripper|Sucker|SuperBot|SuperHTTP|Surfbot|Szukacz|tAkeOut|Teleport\ Pro|URLSpiderPro|Vacuum|VoidEYE|Web\ Image\ Collector|Web\ Sucker|WebAuto|[Ww]eb[Bb]andit|webcollage|WebCopier|Web\ Downloader|WebEMailExtrac.*|WebFetch|WebGo\ IS|WebHook|WebLeacher|WebMiner|WebMirror|WebReaper|WebSauger|Website|Website\ eXtractor|Website\ Quester|Webster|WebStripper|ebWhacker|WebZIP|Wget|Whacker|Widow|WWWOFFLE|x-Tractor|Xaldon\ WebSpider|Xenu|Zeus.*Webster|Zeus) HTTP_SAFE_BADBOT
 Deny from env=HTTP_SAFE_BADBOT
</IfModule>

<FilesMatch "(?i).jpe?g$">
 ForceType image/jpeg
</FilesMatch>
<FilesMatch "(?i).gif$">
 ForceType image/gif
</FilesMatch>
<FilesMatch "(?i).png$">
 ForceType image/png
</FilesMatch>

Options +SymLinksIfOwnerMatch
<IfModule mod_rewrite.c>
 # Let PHP know mod_rewrite is enabled
 <IfModule mod_env.c>
 SetEnv MOD_REWRITE On
 </IfModule>
 RewriteEngine On
 RewriteBase /
 # Fix Apache internal dummy connections from breaking [(site_url)] cache
 RewriteCond %{HTTP_USER_AGENT} ^.*internal\ dummy\ connection.*$ [NC]
 RewriteRule .* - [F,L]
 # Exclude /administration and /themes directories and images from rewrite rules
 RewriteRule ^(administration|themes)/*$ - [L]
 RewriteCond %{REQUEST_FILENAME} !-f
 RewriteCond %{REQUEST_FILENAME} !-d
 RewriteCond %{REQUEST_FILENAME} !-l
 RewriteCond %{REQUEST_URI} !^/(administration|config|index.php)
 RewriteRule ^(.*?)$ index.php [L]
</IfModule>

4 replies

Heya, Unless you do not have the original index.php, I am really clueless. It is the same Engine we have in 9.xx versions.
Would have been a nice addition if it worked. For now I focus on content for the new site.

Did a reinstall because adding and enabling, disabling and removing German locale messed up the site. (I found empty leftovers in my database).

Other things I encountered:

Added a <br> in \forum\index.php to make it compatible with class forum-cat-description small
Line 79
CodeDownload  
echo "<h3><a href='".BASEDIR."forum/index.php?cat=".$data['forum_cat']."'>".$data['forum_cat_name']."</a></h3><br />\n";


See line 114 for the reason, here is a <br> too.
CodeDownload  
echo "<td class='tbl1 forum_name' width='55%'><!--forum_name--><h3><a href='".BASEDIR."forum/viewforum.php?forum_id=".$data['forum_id']."'>".$data['forum_name']."</a></h3><br />\n";



V8 was apparently optimized for atom-x8 theme. A lot of extra css provided in themes\templates\global.css and default.css screw up other themes like Stylo. Yes I know it can be en/disabled in theme.php.
But for some nice effects I still need extra css from global.css and default.css. For now I added it manually to styles.css in the theme folder. But for compatibility reasons code should work right out of the box.
Thank you, i´ll put it on L 81 tho, no need to break if no desc is present.
It is a really nice addition indeed, I have it tested in my local Laragon install. My Fullstack apache server and on our production servers here. Since it is same engine we developed for 9, it does behave in all environements we have available under 9 as well. It is very hard to say why it would not do so for you. Make sure the mod_rewrite exist and are enabled as well. Basically, Original index.php & mod_rewrite or equivalent should do the trick.

Falk wrote:

@Falk - Thank you, i´ll put it on L 81 tho, no need to break if no desc is present.


Yes that is even better! cool But then again take a look at line 114 and 115. The same applies there "no need to break if no desc is present.".
Possibly there are other similar situations that need to be addressed.

Just a seo tip: use $data['forum_description as meta description when a forum is selected. I use that in my modded v7. Not sure if this is still relevant, as Google make up their own keywords and descriptions.

Merged on 02/21/2019:
just remove the extra <br />!
In atom-x8 theme this is not needed. In for example stylo it is only needed to make it a little bit more prettier.
author Wanabo
forumSystem Administration - 8
replies5 posts
viewed413 times
activeLast updated on 6 months ago
You can view all discussion threads in this forum.
You cannot set up a bounty in this discussion thread.
You can start a new discussion thread in this forum.
You cannot reply in this discussion thread.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You can download attachments in this forum.
You cannot up or down-vote on the post in this discussion thread.
Users who participated in discussion: Falk, Wanabo