[eluser]exodus7[/eluser]
I seem to be having some problems with my .htaccess file when I add a redirect to it.
This is what I had originally:
Code:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [QSA,L]
AddHandler php5-script .php
This is what I had after:
Code:
RewriteEngine On
RewriteRule ^index\.php\?id\=1$ http://www.mydomain.net/index.php/home/ [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [QSA,L]
AddHandler php5-script .php
I've also tried:
Code:
RewriteEngine On
RedirectMatch permanent ^/index\.php\?id=80$ http://www.mydomain.net/services
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [QSA,L]
AddHandler php5-script .php
And tried this:
Code:
RewriteEngine On
RedirectMatch 301 ^/index\.php\?id=80$ http://www.mydomain.net/services
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [QSA,L]
AddHandler php5-script .php
But still no luck. What did I do wrong?