Select Page

Open-SEF.org friendly url mapped to root url

 I’ve found a workaround to the "You are not authorized to view that resource" problem.For some reasons, which are still unknown for me, and when someone try an invalid url, or the tool get mad, the OPEN-SEF create a dummy friendly URL rule: it map it to "/" which led to the invalid message.

To solve temporary this error, I use to unpublish the fault URL rule, but since I still need to sleep 🙂 i can not guarantee thee statbility when I am not in front of my computer.

While I did not find the reason, and after tweaking the OPEN-SEF parameters for a while, I decide to put a workaround in place: a crontab
1. Create a file on your server: sef_workaround.sh
2. put this inside: mysql -uDBUSER -pDBPWD DBNAME -e "delete FROM DBPREFIX_sef WHERE external = ‘/’"
3. create a crontab entry using PLESK panel or SSH (crontab -e)
*/1 * * * * /var/www/vhosts/waltercedric.com/private/sef_workaround.sh

this will execute the file sef_workaround.sh every minute. Note I will contact Mrko Schmuck (Aka predator) and browse its forum to see if I can solve it elegantly.

About The Author

I worked with various Insurances companies across Switzerland on online applications handling billion premium volumes. I love to continuously spark my creativity in many different and challenging open-source projects fueled by my great passion for innovation and blockchain technology.In my technical role as a senior software engineer and Blockchain consultant, I help to define and implement innovative solutions in the scope of both blockchain and traditional products, solutions, and services. I can support the full spectrum of software development activities, starting from analyzing ideas and business cases and up to the production deployment of the solutions.I'm the Founder and CEO of Disruptr GmbH.

Categories