.htaccess and rewrite on mac |
[eluser]learning_php[/eluser]
Hi, i recently purchased a Macbook and i am having a little trouble getting my page links to work. I know its something to do with the way that i have set up my .htaccess file but cannot seem to get it to work and i keep getting 404 errors? I have set up MAMP as i localhost so the Mod_rewite should already be working? This is what i have for my .htaccess Code: <IfModule mod_rewrite.c> controller: Code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN">
[eluser]tomcode[/eluser]
Take out the if clauses in the .htaccess, if it does not work, we'll see further Edit : comment the Error document while testing
[eluser]learning_php[/eluser]
hi, I move the file directly in to the htdocs folder so the path is now htdocs/mysite and I changed the .htacess but still does not work! Code: <IfModule mod_rewrite.c>
[eluser]tomcode[/eluser]
What happens if You comment the IfModule clause : Code: # <IfModule mod_rewrite.c> Edit : Try also : Code: # <IfModule mod_rewrite.c>
[eluser]learning_php[/eluser]
I still get the 404 with this url/mysite/about/index was not found on this server
[eluser]tomcode[/eluser]
Do You get CI's error or Apache's error ? Does the app work with index.php ? if the app is located at /htdocs/mysite, then put the .htaccess into the root folder of Your app: /htdocs/mysite/.htaccess if it still does not work, create an error in Your .htaccess, if You do not get a 500 server eror, then apache ignores Your .htacess file
[eluser]learning_php[/eluser]
My main controller with my homepage opens correctly with the url localhost:8888/mysite but when i try and link away i get a 404.
[eluser]tomcode[/eluser]
Please be more precise: Do You get CI's 404 errors or Apache's 404 error ? Do You mean with or without .htaccess ? Have You set Your base_url in the config file to http://localhost:8888/mysite/ ?
[eluser]danmontgomery[/eluser]
http://old.nabble.com/Mod_rewrite-and-Ma...42459.html Have you tried this?
[eluser]learning_php[/eluser]
its an apache apache 404 error. with my .htaccess file in the mysite root folder as the following: Code: <IfModule mod_rewrite.c> and by base url is set to localhost:8888/mystite/ Which URI protocol should i be using as i currenlty have it set to Auto? |
Welcome Guest, Not a member yet? Register Sign In |