Finally I found the answer on this forum. I have to write the following line of code at the first line of the .htaccess found at app/webroot
RewriteRule ^(.*)page:1(.*)$ /$1 [R=301,L]
The final .htaccess will be:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(.*)page:1(.*)$ /$1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
</IfModule>
Important Notice:
If your application resident at sub-directory of your server's document root, you have to add it to the regarded line of code, otherwise, it will generate 404 not found. For example, supose that your aplication is found at /myapp which you are accessing it using
http://localhost/myapp/
, so the rewrite rule is going to be:RewriteRule ^(.*)page:1(.*)$ /myapp/$1 [R=301,L]