Apache web-site access error "404 - Not found"
Original Publishing Date:
2020-01-22
Symptoms
Customer has Apache website site 1 located on NG Web-cluster/server. On attempt to access the site error 404 - not found is shown
Cause
Customer has another website site 2 based on APS-application WordPress in the same webspace. Site 2 is located in root directory of the webspace.
In result there is a redirect rule in file PATH_TO_WEBSPACE/webspace/.htaccess:
RewriteRule "^httpdocs(|/.*)$" /siteapps/WordPress-_ID_/htdocs$1
RewriteRule "^httpsdocs(|/.*)$" /siteapps/WordPress-_ID_/htdocs$1
These redirect rules forward requests to site 1 to unexisting location. In result error 404 - Not Found is shown
Resolution
Change location of site 2 from / to /site_2_name:
CCP > Websites > site 2 > tab Web > Edit
Internal content
Link on internal Article