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.
Not a member yet? Click here to register.
Forgot Password?

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

Asked Modified Viewed 1,443 times
S
Systemweb
S
  • Junior Member, joined since
  • Contributed 22 posts on the community forums.
  • Started 6 threads in the forums
  • Started this discussions
asked
Junior Member

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?
0 replies

5 posts

C
Chan
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,842 posts on the community forums.
  • Started 232 threads in the forums
  • Answered 6 questions
answered
Super Admin

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.
0 replies
S
Systemweb
S
  • Junior Member, joined since
  • Contributed 22 posts on the community forums.
  • Started 6 threads in the forums
  • Started this discussions
answered
Junior Member

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?
0 replies
C
Chan
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,842 posts on the community forums.
  • Started 232 threads in the forums
  • Answered 6 questions
answered
Super Admin

I'll have a test run with current drivers during the weekend and get back to you on this.
0 replies
— 1 month later —
S
Systemweb
S
  • Junior Member, joined since
  • Contributed 22 posts on the community forums.
  • Started 6 threads in the forums
  • Started this discussions
answered
Junior Member

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"
0 replies
C
Chan
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,842 posts on the community forums.
  • Started 232 threads in the forums
  • Answered 6 questions
answered
Super Admin

Oh, thanks for letting us know. I'll open an issue on Github. https://github.com/PHPFusion/PHPFusion/issues/2391
0 replies

Category Forum

SEO & SEF - 9

Labels

Statistics

  • Views 0 views
  • Posts 5 posts
  • Votes 0 votes
  • Topic users 2 members

2 participants

C
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,842 posts on the community forums.
  • Started 232 threads in the forums
  • Answered 6 questions
S
S
  • Junior Member, joined since
  • Contributed 22 posts on the community forums.
  • Started 6 threads in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet