These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for .htaccess ReWrite Question on the new forum.
Hi
A customer of mine needs a .htaccess file that will do the following:
Requests for: "http://www.domain.com/something" will be re-written as requests for "http://www.domain.com/index.php?/something"
He already has this, but it does not seem to work:
RewriteEngine On
RewriteCond $1 !\.(gif|jpe?g|png)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
Any ideas?
(CentOS Linux 6.2, VM 3.91 Pro)
Oh - got it!
This: RewriteRule ^(.*)$ /index.php/$1 [L]
Should be: RewriteRule ^(.*)$ /index.php?/$1 [L]
;-)