Broke image links when UserDir apache modules enabled
-
Hi,
I used your plugin in apache’s UserDir environment, and all my images links are broken. After debugging your code, I found that your method of discovering
site_url
(eazyest-gallery.php line 486) uses$_SERVER['DOCUMENT_ROOT']
which totally different onUserDir
environment. Because by default ‘DOCUMENT_ROOT’ on UserDir directory points to Apache’s globalDOCUMENT_ROOT
. To get your plugin works, I must setDocumentRoot
manually on.htaccess
file.Hope you find a better implementation to discover
site_url
or you can note this on your plugin documentation page.Regards,
Lim
—
- The topic ‘Broke image links when UserDir apache modules enabled’ is closed to new replies.