开发者

custome php application in a subdomain under cakephp website

I have website developed in cakephp, now I wants to add a new application developed in simple php under a sub-domain like myapp.mywebsite.co.uk

How to make changes to .htaccess so that myapp will not interact with cakephp 开发者_StackOverflow中文版 Please help me out.

Thank you


The cakephp’s .htaccess is made to be ignored when you want to access already existing files in your webroot, so, in most cases you won’t need to change it, just upload your php files into /app/webroot and point the url to that filename.


It can depend how your sub domain name is configured, if in doubt I would route it manually in your .htaccess

RewriteRule ^subdomain.example.com$ /subdomain/index.php [L]

Do check it though, as I've written it off the top of my head! ;) This should go in the htacess in the root of the folder, so in your public_html or similar.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜