If you have not already, we suggest setting your Plex username to something else rather than email which is displayed on your posts in forum. You can change the username at https://app.plex.tv/desktop#!/account
Welcome to our forums! Please take a few moments to read through our Community Guidelines (also conveniently linked in the header at the top of each page). There, you'll find guidelines on conduct, tips on getting the help you may be searching for, and more!

Batch Script to remove all index.php/ from forum linked posts/topics

sa2000sa2000 Posts: 29,398Members, Plex Pass, Plex Ninja, Plex Team Member Plex Team Member

Would it be possible to run a batch job to edit all links within posts for forum topics / posts to remove the /index.php

eg

replace link to
https://forums.plex.tv/topic/164829-this-server-cannot-reach-the-internet-please-verify-connectivity-and-try-again/
with
https://forums.plex.tv/topic/164829-this-server-cannot-reach-the-internet-please-verify-connectivity-and-try-again/
in post that has the link

Help given free on forums.            Fee-Based Personal Support & Help.        

_______________________________________________________________________________________

Plex Support Information              Troubleshooting               FAQs

Plex Media Server:   Reporting Issues        Plex Web App: Debug Log    Plex Apps: Support pages and Logs    Logs: All Logs

For list of 3rd party programs and malware / adware crashing Plex Media Server and mswsock.dll on windows, see Repeated crashing of Plex Media Server on Windows
 

Best Answer

Answers

  • OttoKernerOttoKerner Posts: 26,240Members, Plex Pass, Plex Ninja Plex Ninja

    I've asked about this. A solution is in the works.
    Search/replace in the database would invalidate all links cached by search engines. So I think the eventual solution will look a bit different.

    Help others too - by reporting back with your results!
    Have you checked the Documentation before posting a question in the forums?
    Use the SEARCH function before starting a new thread!
    No PMs unless requested, please! Do not use 'verbose' logging
  • war59312war59312 Posts: 52Members, Plex Pass Plex Pass

    Rewriite should be easy enough. Simple enough to "drop" the index.php.

    God Bless U.S.A - Congrats Ladies. :) Champs of the world!! :D

  • sa2000sa2000 Posts: 29,398Members, Plex Pass, Plex Ninja, Plex Team Member Plex Team Member

    Appears to be not just removing index.php

    Where there is a link to a specific post then the post number is now a comment number but url syntax is completely different

    See issue highlighted here which needs to be incorporated in any re-write that will be done

    https://forums.plex.tv/discussion/173012/query-string-from-old-links-causes-404s#latest

    Help given free on forums.            Fee-Based Personal Support & Help.        

    _______________________________________________________________________________________

    Plex Support Information              Troubleshooting               FAQs

    Plex Media Server:   Reporting Issues        Plex Web App: Debug Log    Plex Apps: Support pages and Logs    Logs: All Logs

    For list of 3rd party programs and malware / adware crashing Plex Media Server and mswsock.dll on windows, see Repeated crashing of Plex Media Server on Windows
     
Sign In or Register to comment.