Can I redirect the HTTP request towards an old folder to the homepage using .htaccess file?
- by AndreaNobili
I have to following situation: I had an old blog that was made using Joomla (this blog was indexed well enough by search engines). For some problems I delete it and I have create it again using WordPress.
Now I have many visit (from Google) that leading to specific pages of the old site (pages that don't exist in the new version).
For example I have visit to URL as: /scorejava/index.php/corso-spring-mvc/1-test that don't exist on my new site.
I would know if using the .htaccess file (or other sistem) I can redirect the HTTP request directed to some subfolder (that don't exist in the new version) to the homepage of my new site.
For example I have the request towards the void URL: /scorejava/index.php/corso-spring-mvc/1-test.
And I would create a regular expression that say something like: all the request toward the subfolder corso-spring-mvc (and all it's content file and subfolder) have to be redirected to www.scorejava.com.
Is it possible?