Removing index.php in Codeigniter |
[eluser]drewdin[/eluser]
Sorry for the confusion, I started using my windows machine an hour or so ago, when i got to work. since I sync my stuff through dropbox I tend to develop from both places. My MAC and my windows machine. I wont be able to test the MAC until later tonight. I just figured f I could get it going with my windows machine, i would be good. I'll wait until i get home and re-run the tests. If you will be on later tonight, I would appreciate the help.
[eluser]drewdin[/eluser]
Here is the output from my mac; Code: [HTTP_HOST] => localhost
[eluser]drewdin[/eluser]
Also, i noticed if I comment out the Code: #RewriteBase /CodeIgniter/
[eluser]drewdin[/eluser]
is anyone around to help? I have been struggling with this for a few days...
[eluser]TheFuzzy0ne[/eluser]
Sorry, I'm out of ideas. I'm just hoping that another Mac user will be so kind as to post their .htaccess file. However, I would suggest that you add your site to your hosts file, and then you can add a virtual host for your Web site, so that you don't have to use RewriteBase anymore. Code: <VirtualHost *:80> There are differences between the two servers, but this will allow you to specify a different .htaccess file for each, since I doubt one will work on both Windows and your Mac. Mac: Code: <VirtualHost *:80> Windows can just use the default .htaccess file.
[eluser]Unknown[/eluser]
[quote author="drewdin" date="1366248048"]is anyone around to help? I have been struggling with this for a few days...[/quote] Have you changed the server's config file to enable "AllowOverride" If you use apache server, you need to set all "AllowOverride all" in file "conf/httpd.conf"
[eluser]Geoffrey[/eluser]
[quote author="smilepeng" date="1366902191"]If you use apache server, you need to set all "AllowOverride all" in file "conf/httpd.conf" [/quote] You don't need to make it that open. You just need to allow FileInfo. Code: AllowOverride FileInfo
[eluser]Unknown[/eluser]
Only enable the mod_rewrite in Apache.it will be solve.
[eluser]Unknown[/eluser]
Hi, I have the same problem also, but I am using the Internet Information Services (IIS) as my local web server. How can I also remove the index.php in my URL, I am very new in CodeIgniter. Thanks. Attached is the page with the error. I also did what's on this topic.
[eluser]Unknown[/eluser]
That's occour because you are not defining the root path CodeIgniter on your base URL I'm using this as root .htacces, please try again RewriteEngine on RewriteBase /CodeIgniter/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond $1 !^(index\.php|js|img|css|captcha|robots\.txt) RewriteRule ^(.*)$ /CodeIgniter/index.php/$1 [L] |
Welcome Guest, Not a member yet? Register Sign In |