I have just launched a new EE site and want to have some of the old site addresses re-written to direct to the new ones. I am removing the index.php using the “include” method in the Wiki
The old addresses were in the form:
http://www.esoc.org.uk/?page=home
This is my .htaccess code:
RewriteEngine on
RewriteRule ^\?page=home$ /home/ [L,R=301]
RewriteRule ^\?page=events$ /home/events/ [L,R=301]
RewriteRule ^\?page=permanent$ /home/poc/ [L,R=301]
RewriteCond $1 ^(home|search|member|P[0-9]{2,8}) [NC]
RewriteRule ^(.*)$ /index.php/$1 [L]This isn’t working, if I have the Global Template Preferences set to serve a 404, that’s what I get when I load the old address, not a re-written url.
I think it’s got something to do with the leading ? in the old address, any ideas?