Skip to content

Instantly share code, notes, and snippets.

@souparno
souparno / .htaccess file ,subdomain and cakePHP
Created October 5, 2014 08:36
.htaccess file ,subdomain and cakePHP
onsider a domain www.example.com. You have created an appliaction in its root folder.
Now you purchase a new subdomain www.newdomain.net that is like root/newdomain/ in your server.
When you place your cake application inside this newdomain folder, you will encounter problem regarding
redirect, sometimes you css will be not getting loaded same is with javascript and images.
To overcome this problem create 3 .htaccess files in this order:-
1) .htaccess file in root/newdomain/ folder write this:-
<IfModule mod_rewrite.c>
RewriteEngine on
" Specify a directory for plugins
" - For Neovim: stdpath('data') . '/plugged'
" - Avoid using standard Vim directory names like 'plugin'
call plug#begin('~/.vim/plugged')
Plug 'morhetz/gruvbox'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'preservim/nerdtree'
Plug 'scrooloose/nerdcommenter'