Problem with mod_rewrite |
[eluser]Unknown[/eluser]
Hi, it is my first post so please be nice ;P I have problem with mod_rewrite i do not know how to use it in right way. My code: Code: RewriteEngine On / After i made request for example: http://localhost/frame/archiwum.html CI funnel me to the address http://localhost/index.php/file/nowy and changed it. Is there any possibility to load the address without changing it in browser ?
[eluser]Molchy[/eluser]
[quote author="Tabb" date="1307397442"]Hi, it is my first post so please be nice ;P I have problem with mod_rewrite i do not know how to use it in right way. My code: Code: RewriteEngine On / After i made request for example: http://localhost/frame/archiwum.html CI funnel me to the address http://localhost/index.php/file/nowy and changed it. Is there any possibility to load the address without changing it in browser ?[/quote] Best way is that u tell us what URL u wanna have or what u wish to do Normaly CI users remove index.php from URL ... and have something like this: http://www.url.com/par/par ... Secondly CI users force WWW to url because of better SEO ...
[eluser]Unknown[/eluser]
I want to have url like this: http://www.example.com/plik-6330-2hdd.html To be loaded from: index.php/file/windows/6330/2hdd how to to this ?
[eluser]Molchy[/eluser]
[quote author="Tabb" date="1307403201"]I want to have url like this: http://www.example.com/plik-6330-2hdd.html To be loaded from: index.php/file/windows/6330/2hdd how to to this ?[/quote] 1. In config.php file have this settings: Code: $config['index_page'] = ''; 2. Make this .htaccess file: Code: <IfModule mod_rewrite.c> Hopefully i didnt forget anything |
Welcome Guest, Not a member yet? Register Sign In |