On root of my server, I have codeigniter with htaccess. I have created a wp/ folder along codeigniter’s sub-folders (e.g. application, config) in which I have placed all the wordpress files. Now when someone types
www.abc.com
i redirect him to
www.abc.com/wp/
but I want to hide wp in the url. How can I achieve this without modifying my current file structure? I want wordpress to be my site’s front and codeigniter to be my site’s backend. The file structure is shown below:
In your root directory, create a .htaccess with following codes. This will map all your http requests to the /wp/ directory.
You also want to hide the /wp/ directoy from URL. For this, create another .htaccess in your /wp/ directory and write following lines:
If someone types â/wp/â anywhere in the address bar, they will not see what is in it. Instead, they will see your homepage.
You may have to adjust the code to suite your requirement.