Jump to content

whmc and wordpress in same location issue.


grapyhost

Recommended Posts

We have whmcs in public_html directory and same we hosted wordpress in the same location.

As whmcs - bagful.net/manage

and WordPress - bagful.net

so the issue is whmcs and WordPress have index.php conflict issue whenever we update the whmcs.

so can you tell me .htaccess rules to access both in the same location?

 

Currently, the rule applied - 

# Send all remaining (routable paths) through index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# Determine and use the actual base
RewriteCond $0#%{REQUEST_URI} ([^#]*)#(.*)\1$
RewriteRule ^.*$ %2manage/index.php [QSA,L]
</IfModule>

If i removed manage from RewriteRule ^.*$ %2manage/index.php [QSA,L]  so wordpress all sub links work properly. if not so wordpress links get to redirect to whmcs 404. 

If anyone has an idea to get both works, please share. 

Link to comment
Share on other sites

Don't do that 😟 Wordpress (or any other CMS) and WHMCS sharing the same hosting package is a security risk. Cracking Wordpress grants you access to WHMCS. The funny thing is that It happened to today to a client of mine.

I'm not saying that you can't have the structure you have in mind (bagful.net & bagful.net/manage) but keep them separated and not inside the same public_html.

Link to comment
Share on other sites

  • 3 years later...
On 2018/9/5 at AM4点00分, Kian said:

不要那样做 😟 Wordpress(或任何其他 CMS)和 WHMCS 共享相同的托管包是一种安全风险。破解 Wordpress 允许您访问 WHMCS。有趣的是,今天发生在我的一个客户身上。

我并不是说你不能拥有你想要的结构(bagful.net 和 bagful.net/manage),而是将它们分开而不是在同一个 public_html 中。

How to do that 

Link to comment
Share on other sites

9 hours ago, leemahoney3 said:

将它们放在单独的托管帐户或单独的服务器上。我建议不要将任何其他东西放在与您的 WHMCS 安装相同的服务器/帐户上。

what i want is
for example:
www.***.com this is the wordpress site
www.***.com/members This is the whmcs site how can I compare the implementation of security

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated