Put CI website in the subfolder |
[eluser]jacobson[/eluser]
Hello I have a problem with my CI project. I have a website on wordpress in my public_html folder and I have a folder "ci" with my codeigniter project. I changed the site_url in config to http://mysite.com/ci/, I deleted index.php. and added the .htaccess file Code: RewriteEngine on When I want to enter http://mysite.com/ci it shows 404 error did I miss something ? I'd appreciate your help
[eluser]PhilTem[/eluser]
You deleted the index.php file? If you did so it's no surprise that nothing's working anymore. Put the index.php file back in since it handles all the requests and is the "gate" to your app
[eluser]jacobson[/eluser]
I didnt delete index.php permanently - just from the config file . Sorry My bad
[eluser]PhilTem[/eluser]
Oh I see. So, either it's the RewriteRule that screws it thus try Code: RewriteRule .* index.php/$1 [PT] or it's the options to the RewriteRule, thus try Code: RewriteRule .* index.php/$1 [L] My .htaccess that works perfectly on multiple pages for months Code: RewriteEngine On
[eluser]jacobson[/eluser]
I changed my htacces to yours and still 404 error. Is it possible that htaccess file in my public_html (root) folder mess up ? I created a folder on my localhost and put my project inside and it worked just fine...
[eluser]PhilTem[/eluser]
It could be that your deployment server has different settings on .htaccess such as it does not allow custom .htaccess files or whatsoever. Maybe you want to ask your sysadmin. |
Welcome Guest, Not a member yet? Register Sign In |