reditecting pages in .htaccess file

Oct 8, 2012 by sally23
I am trying to redirect to (the number is a  dynamic variable). I tried the following line in  mod-rewrite rules in my .htaccess file
RewriteRule ^editor/a/page(.*)$$1 [L,R=301]
But nothing is happening. Any help achieving this will be very much appreciated.
Many thanks

2 Answers

Oct 8, 2012 by TopNet
The line you have seems correct, make sure you have  RewriteEngine On
before this line
0 votes

Oct 8, 2012 by SmartHost
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^editor/a/page(.*)$$1 [L,R=301]
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
0 votes