Hello I bought a site .. this site is a site with 500 pages with inner links I intent to change the website to another script and niche so i want all old inner links to redirect to the main page How do i do that in .htaccess? Let say this is the url list URL LIST: http://mysite1.com/123 http://mysite1.com/123234 http://mysite1.com/123/234/23423/page http://mysite1.com/tags/page How do i make everything ( list is 1k pages ) to redirect to homepage? regards and thanks
There's a good tutorial on 301 redirects here: http://www.webconfs.com/how-to-redirect-a-webpage.php However if possible I'd recommend redirecting every page to the most relevant page on your new structure, rather than the home page. Then you'll get the benefit of starting your site with some nice deep links to relevant content.
You can use plugin if your website is Wordpress. There is a function for you to redirect 301 by pointing the dead to the targeted page that you want.