• You MUST read the Babiato Rules before making your first post otherwise you may get permanent warning points or a permanent Ban.

    Our resources on Babiato Forum are CLEAN and SAFE. So you can use them for development and testing purposes. If your are on Windows and have an antivirus that alerts you about a possible infection: Know it's a false positive because all scripts are double checked by our experts. We advise you to add Babiato to trusted sites/sources or disable your antivirus momentarily while downloading a resource. "Enjoy your presence on Babiato"

How to run a redirection python script on cpanel shared server such that it triggers on website page visit?

m1zz

Well-known member
Nov 5, 2020
335
587
93
The Dark Web
3seo.io
In short, I am trying to run an URL redirection python script on a shared server via cPanel's Setup Python App.

The app seems to work with no errors, but its not redirecting.

For example, the python app is setup on this domain: https://example.com/

The script states that if a corresponding redirect_path is visited, it will be redirected to the destination URL. For example, if ebay is my redirect_path, then visiting https://example.com/ebay will lead me to the set destination URL (e.g. https://ebay.com/)

I am used to using folders inside the File Manager to set the redirection paths (i.e. website pages), but I am trying to have the one python script to list all of the redirection paths and their corresponding destination URL's in one place with no folders.

It may be a newbie question, but how do I set up this python script on my domain (say https://example.com/), so that even when I visit https://example.com/ebay or https://example.com/google, it will execute the script?
 
can u write the example with exact link? i think one reply cause no one know the site (cant analyze) and no one is god (know everything)
 
AdBlock Detected

We get it, advertisements are annoying!

However in order to keep our huge array of resources free of charge we need to generate income from ads so to use the site you will need to turn off your adblocker.

If you'd like to have an ad free experience you can become a Babiato Lover by donating as little as $5 per month. Click on the Donate menu tab for more info.

I've Disabled AdBlock