.htaccess redirect after changed Bludit form directory to root

Post Reply
eltigre
Jr. Bludit
Posts: 5
Joined: Mon Nov 07, 2022 8:57 am
Has thanked: 1 time
Been thanked: 1 time

Hi guys

For some reason I need to change the installation from one directory (/cms) to the root of my hosting. Bludit works so far. But now I want to have a redirect from all old sites /cms to root. I have not been able to do this with .htaccess, so Bludit continues to display the pages. The problem is that the old URL were published of course and without this redirection point to nirvana.

Any ideas? Is it possible to do this so that Bludit recognizes the old pages?

Thank you and best regards,

Kilian
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

Please try with the following added to the file .htaccess in the directory root:

Code: Select all

RewriteRule ^cms/(.*)$ /$1 [R=301,NC,L]
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
eltigre
Jr. Bludit
Posts: 5
Joined: Mon Nov 07, 2022 8:57 am
Has thanked: 1 time
Been thanked: 1 time

Hi Edi,

Thanks for the reply. It works :D, that's great! Thank you again!

Regards,

Kilian
Post Reply