Welcome Guest, Not a member yet? Register   Sign In
Friendly URL
#1

[eluser]Unknown[/eluser]
Hello,
On the begining i am sorry for my english. I will try be correct.
I must beg someone about help with "rewrite" option.
I have adress to controller:
http://127.16.0.1/CodeIgniter_1.7.2/index.php/test/

but it is very ugly address. I never seen these adresses in the net. I rode that i should make .htaccesss file with code:
Code:
<?php
    RewriteEngine on
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php/$1 [L]
?>

and change $config['index_page'] on:
Code:
$config['index_page'] = "";

But when i use new address:
http://127.16.0.1/CodeIgniter_1.7.2/test/

serwer say that it is not exist... Please help me.

Thanks for any help,
Tiregan
#2

[eluser]bl00dshooter[/eluser]
Why are there <?php and ?> on your .htaccess? It's not a php file...
Thus, your Rewrite rule needs to be something like this
Code:
RewriteRule ^(.*)$ /CodeIgniter_1.7.2/index.php/$1 [L]
#3

[eluser]Unknown[/eluser]
Oh, Thank You good man! It work now!
Only on this forum someone helped me! Thanks.
#4

[eluser]bl00dshooter[/eluser]
No problem mate, shall you need more help just ask.




Theme © iAndrew 2016 - Forum software by © MyBB