Search Engine: Elastic

Article ID: 119375, created on Dec 27, 2013, last review on May 10, 2014

  • Applies to:
  • Odin Business Automation Standard 4.3

Symptoms

The following link used to work fine for my customers to access their control panel but now returns a page not found error.

https://%pbas_hostname%/cp

However if I go to https://%pbas_hostname%/cp/index.cgi I get the login screen.

Can you get the url to work without the file name?

Cause

Misconfiguration in /etc/httpd/conf/hspc_rewrite.conf.

Resolution

Verify rules in /etc/httpd/conf/hspc_rewrite.conf and fix the problem. Here are detail rewrite rules for PBA-S 4.3.4-22:

RewriteRule ^(/skins)/[^/]+?/(.+)$ $1/panel/$2
RewriteRule .* - [F]
RewriteRule     \.(ini|inc|pm|tmpl|xsd|json)$ - [F]
RewriteRule     \.(ico|gif|jpg|png|css|js|pdf|shtml|html|txt)$ - [PT]
RewriteRule     ^(/html/static/|/frontend/) - [L]
RewriteRule     ^/shop(.*) /shop/index.php/$1 [PT]
RewriteRule     ^/(site|store).*$ /hspc/index.php [L,R]
RewriteRule     ^(/hspc)?/?$ /hspc/index.php [L,R]
RewriteRule     ^/hspc/(includes|templates)/ - [F]
RewriteRule     ^/.+\.php$ - [PT]
RewriteRule     .* - [PT]
RewriteRule     ^/(cp|mycp)$ $1/ [L,R]
RewriteRule     ^/(pcc|rcc)/*$ /hspc/$1/ [L,R]

Remember to reload frontend webserver to apply the changes:

~# /etc/init.d/hspcd restart

400e18f6ede9f8be5575a475d2d6b0a6 caea8340e2d186a540518d08602aa065 807e9c1dc97aefd951b912a17e50c428 70a5401e8b9354cd1d64d0346f2c4a3e

Email subscription for changes to this article
Save as PDF