Change PBAS root index to redirect to /cp instead of online store

Discussion in 'Customization & Integration Showcase and Discussion' started by AaronMcH, Jul 31, 2014.

  1. AaronMcH

    AaronMcH Mega Poster

    Messages:
    128
    Hi, when users go to https://cp.<domain>/ (the PBAS hostname) I would like them to redirected to /cp instead of the online store (e.g. /shop), how would I do this? And how would I do it safely so that the change is not overwritten when PBAS is updated?

    Thank you
    Aaron
     
  2. FedorK

    FedorK Mega Poster

    Messages:
    224
    Hello,

    On file /etc/hspcd/conf/hspc_rewrite.conf change:

    RewriteRule ^/?$ /shop/index.php [L,R]

    to

    RewriteRule ^/?$ /cp [L,R]

    Those files are not rewritten during upgrade.
     
  3. AaronMcH

    AaronMcH Mega Poster

    Messages:
    128
    Great, thanks!
     

Share This Page