Hi everyone!
I’m having also problems… I’m using Xampp and I have mod_rewrite enabled.
The thing is that I want to use this type of URLs :
http://localhost/test/ict-j/page4.html
So my RewruteRule is :
RewriteRule ^(.+)-j/page([0-9]*)\.html$ index.php?/landing/getInfo/$1/$2 [L,QSA]
And these are my settings :
.htaccess :
Options +FollowSymLinks
Options -Indexes
DirectoryIndex index.php
RewriteEngine on
RewriteCond $1 !^(index\.php|resources|images|css|js|robots\.txt|favicon\.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)-j/page([0-9]*)\.html$ index.php?/landing/getInfo/$1/$2 [L,QSA]
and config.php :
$config[‘base_url’] = “http://127.0.0.1/test/”;
/*
|—————————————————————————————————————
| Index File
|—————————————————————————————————————
|
| Typically this will be your index.php file, unless you’ve renamed it to
| something else. If you are using mod_rewrite to remove the page set this
| variable so that it is blank.
|
*/
$config[‘index_page’] = “”;
$config[‘uri_protocol’] = “REQUEST_URI”;
With this configuration I’m getting 404 Page not found :( .
I hope somebody could help me
Thnx