Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I am in the following situation: I had an old blog that was made using Joomla (this blog was indexed well enough by search engines). Due to some problems I deleted it and moved the site over to WordPress/

Now I have many visits (from Google) that lead to specific pages of the old site (pages that don't exist in the new version).

For example I have visits to URLs as /scorejava/index.php/corso-spring-mvc/1-test that doesn't exist on my new site.

I would know if using the .htaccess file (or other system) 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 empty 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?

share|improve this question

closed as off topic by toscho Apr 9 '13 at 14:28

Questions on WordPress Development Stack Exchange are expected to relate to WordPress within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

    
Pure .htaccess rewrite questions are not really WordPress specific. On Stack Overflow they aren’t welcome anymore too, so I answered here – and closed it. –  toscho Apr 9 '13 at 14:30

1 Answer 1

That should be easy:

RedirectMatch Permanent corso-spring-mvc/ /
share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.