removing index.php from url |
[eluser]Unknown[/eluser]
seems this is not quite as simple as it would appear. why is this even an issue? Why would the index.php ever show up in the URL? I've tried it on IIS and apache. I've tried every solution from google and this forum. Looks like i'll download cake and try that instead. too bad, i kind of like this product, but this is such a simple thing, (or you would think). i know it sounds like i'm bitchin, but i'm tired of spending so much time on this ....
[eluser]Colin Williams[/eluser]
Servers work one way out of the box, and I won't waste time trying to explain to you here. When you use mod_rewrite, you are telling it to work another way. It's so simple: Server, don't do that, do this instead. Don't serve that file, serve index.php, or ci.php, or whatever filename you use for a front controller. I'm guessing you've never laid eyes on http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html or http://msdn.microsoft.com/en-us/library/ms972974.aspx You are going to have to use mod_rewrite with CakePHP, Symfony, WordPress, ExpressionEngine, etc. It's a different setup on IIS, but the basic idea is still there. Sorry you don't yet understand. If you stop what you are doing, head over to the Apache docs (or docs for whatever server you are using) and read and take notes, you'll be better off.
[eluser]brianw1975[/eluser]
[quote author="filisi" date="1250580789"]seems this is not quite as simple as it would appear. why is this even an issue? Why would the index.php ever show up in the URL? I've tried it on IIS and apache. I've tried every solution from google and this forum. Looks like i'll download cake and try that instead. too bad, i kind of like this product, but this is such a simple thing, (or you would think). i know it sounds like i'm bitchin, but i'm tired of spending so much time on this ....[/quote] It's not hard, it's just knowing what needs to be done. Mostly it takes time and experience to remember how to do it. With Apache the mod_rewrite stuff has to be done, but also you need to make sure that AllowOverride All is set in the directory config. Like the other poster said showing the file and the GET string as index.php?a=1&b=2 is default settings. Hiding the file is custom and has nothing to do with the framework you choose no matter what language you choose, be it CI, Drupal, Cake, Python, etc, etc.
[eluser]wiredesignz[/eluser]
[quote author="filisi" date="1250580789"]... but i'm tired of spending so much time on this ...[/quote] Sounds like you need a different profession or different hobby rather than a different framework. Understanding how to manipulate your web server is a basic requirement of web development.
[eluser]tomcode[/eluser]
I always build my sites without the use of mod rewrite and set it up only when deploying. CI allows me to do that, I just need to respect : 1. use only absolute URL's 2. use CI's functions, variables and constants to build the URL's 3. distinguish site_url and base_url
[eluser]Festy[/eluser]
Just use the following rule in a .htaccess file: Code: RewriteEngine on ...and learn to use google and reading documents of whatever framework you are using.
[eluser]Goran Petrovic[/eluser]
Code: DirectoryIndex index.php |
Welcome Guest, Not a member yet? Register Sign In |