I have a PHP file at my server root.. index.php .. which include
's .. DIR/main.php
Now .. DIR/main.php .. has relative links to many nearby files.
All the relative links are broken.
Any way I can change the relative-URL base path for links?
... so the included content of DIR/main.php has all its links to friend1.php changed to DIR/friend1.php.
Edit: This in NOT about include's, this is about CHANGING ahref links en-masse.