PHPCMS v9 Relative Paths During Generation


Modify the file phpcms/modules/admin/category.php:

Replace $r['url'] = siteurl($r['siteid']).$r['url'];

with $r['url'] = $r['url'];
Modify the file phpcms/modules/content/create_html.php and make the following change:

Replace $url = $urls[0];//Absolute path with APP_PATH

with $url = $urls[1];//Relative path without APP_PATH

Leave a Comment

Your email address will not be published.