metabolism / wordpress-bundle

Use Wordpress and Symfony together using a Symfony bundle
MIT License
59 stars 17 forks source link

Redirect `wp-admin` to Wordpress admin #39

Closed markeasting closed 11 months ago

markeasting commented 11 months ago

In Metabolism\WordpressBundle\Action\FrontAction, if the user visits /edition (or in our case, /cms), the page is nicely redirected to the Wordpress admin interface.

It would be nice if this could also redirect the page if a user visits /wp-admin (and maybe also sub-pages, like /wp-admin/upload.php), since most clients are used to visit this url when trying to access the Wordpress interface.

jerome-barbato commented 11 months ago

Hello @markeasting in fact I made it by design, the reason is to prevent robots and hackers to detect easily Wordpress in the subfolder.

If you still want this redirection I may suggest you to override the redirect frontAction

markeasting commented 11 months ago

Hi Jerome,

No problem, and you have a good point there. We'll consider it and add it to our own FrontAction if needed.