sleepyfrog Posted September 10, 2010 Share Posted September 10, 2010 Does anyone now the .htaccess code to get www.store.com/index.php redirected to just www.store.com? I know the one for non-www to www, but the ones I've tried for removing the basic index.php url either stop the CC4 SEF URL bit working (it shows the root path of the server) or it just makes every product/category link bump back to the home page. Thanks Quote Link to comment Share on other sites More sharing options...
Guest Michael Cain Posted October 7, 2010 Share Posted October 7, 2010 Does anyone now the .htaccess code to get www.store.com/index.php redirected to just www.store.com? I know the one for non-www to www, but the ones I've tried for removing the basic index.php url either stop the CC4 SEF URL bit working (it shows the root path of the server) or it just makes every product/category link bump back to the home page. Thanks Try this - worked for me... RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/ RewriteRule ^index\.php$ http://www.yoursite.co.uk/ [R=301,L] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.