I want to move all the URLs with this structure
domain.com/public/index.php/site/samepagename
to
domain.com/site/samepagename
can anyone help me with the .htaccess
this is not duplicate of my previous issue. This is new.
I want to move all the URLs with this structure
domain.com/public/index.php/site/samepagename
to
domain.com/site/samepagename
can anyone help me with the .htaccess
this is not duplicate of my previous issue. This is new.
You can create .htaccess file and and add the below lines:
Options +FollowSymLinks
RewriteEngine on
RewriteRule ^public/index.php/([a-zA-Z0-9-]+)$ site/$1
OR
Options +FollowSymlinks
RewriteEngine on
rewriterule ^public/index.php/samepagename(.*)$ http://domain.com/site/samepagename$1 [r=301,nc]
Please note that above is not tested. Please test it locally before you deployed to production environment.