Using php is there a way to take this path
Path: /abc/def/files/websitedomain/from/this/folder/(mynewpages.php location)
and redirect it in here
Path: /abc/def/files/www/com/(index.php location)
so my result is
website.com/mynewpages
This is my only option available at the moment. The site I am working has been a very interesting experience.
EDIT: None of the solutions provided solved my problem. However, you all got me thinking. I was able to .htaccess file via PHP
<?php
$myfile = fopen(".htaccess", "w") or die("Unable to open file!");
$txt = " copied text + Hello World ";
fwrite($myfile, $txt);
fclose($myfile);
?>
That worked. Now I just need the best way to write my path needs into .htaccess.