i was working on a plugin that can find some special url in wordpress page contents and then if matching URL found then change that url automatically to another url like without giving backlink benfit to that site.
for example :
if i have defined a site that start with www.site2.com
and i wants to redirect this to another site www.site3.com
now pluging will convert url fount www.site.com on page to www.site.com/og.php=www.site2.com now if user clicks this url this will be redirected to www.site3.com
after inslalling and activating plugin found urls are converting but when i clicks them getting error "/og.php" file not found
And when i have tried to open option page to add more url or changing some settings on page
it's giving me error "you do not have permission to access this page"
below you can check my codes for both pages