301 htaccess redirect for old urls to new urls

apache .htaccess redirect

48 просмотра

1 ответ

13 Репутация автора

I want to move all the URLs with this structure




can anyone help me with the .htaccess

this is not duplicate of my previous issue. This is new.

Автор: JulieReader Источник Размещён: 18.07.2016 09:28

Ответы (1)

0 плюса

11681 Репутация автора

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


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.

Автор: Suresh Kamrushi Размещён: 18.07.2016 09:33