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.
Forgot Password?
Navigation

Internal links are not SEF, if there are parameters in link

Last updated on 4 years ago
S
SystemwebJunior Member
Posted 4 years ago
PHPFusion Version: 9.10.20
PHP: 8.1.5 (tested other versions starting from 7.4 and higher)
Apache: 2.4.53, mod_rewrite is enabled

Links are not rewritten to SEF in source code. They are untouched if the links contain any params like profile.php?lookup=1 or infusions/downloads/downloads.php?download_id=1. After click on such a link, the requested site is correctly redirected to "profile-1/username" or "/downloads/download-1/downloadtitle"
Using internal links with params reduces seo score results and shows warnings in analyzer tools about not using parameters in internal links (if these links are not explicitely defined as "no-follow").

How to fix it?
C
ChanSuper Admin
Posted 4 years ago
Hi, the current SEF driver compiles all rules. So if a single rule breaks, the rest will glitch as well. That is unfortunately the main drawback of the current SEF system. To work around this, remove and uninstall all permalink rules and reinstall the "user profile" and see if profile.php?lookup=1 translates first or not? After that, install "download", and verify the links do translate on page load. If they don't, that driver is bad and cannot be used.
S
SystemwebJunior Member
Posted 4 years ago
Thank you for your reply.
First i've deactivated all rewrites. Then i reactivated and reinstalled rewrite for user profiles only. After refreshing site using CTRL + F5 / CTRL + R all profile links was unchanged. When i visit a user profile, the current site is rewritten to SEF.

So i've deactivated rewrites for users profiles again and activated news instead. Same effect: after refreshing the site all news links with params was unchanged.

At last step i've deactivated rewrites for news and tried downloads instead. Rewrites for downloads activated, site refreshed, download links with params wasn't changed.

Maybe there's a bug in sef system?
C
ChanSuper Admin
Posted 4 years ago
I'll have a test run with current drivers during the weekend and get back to you on this.
S
SystemwebJunior Member
Posted 4 years ago
If you or any dev member will fix this issue, there is another conflict in rewrites system between news category 'downloads' and downloads main site itself, which can be fixed too. If both have rewrites enabled and you want to view news category 'downloads', you get redirected to downloads main site.
I've fixed this for now by changing rewrites for downloads from
"downloads" => "infusions/downloads/downloads.php"
to
"downloads/main" => "infusions/downloads/downloads.php"
C
ChanSuper Admin
Posted 4 years ago
Oh, thanks for letting us know. I'll open an issue on Github. https://github.com/PHPFusion/PHPFusion/issues/2391
You can view all discussion threads in this forum.
You cannot 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.
You cannot set up a bounty in this discussion thread.
Moderator: Support Team
Users who participated in discussion: Chan, Systemweb