I cleaned up my site and dropped many pages. I now have 10 pages left from a 100 page site, all static html. I want any request to remote pages to forward 301 to the main page, but cannot define .htaccess rules!
I doubt that a better way than listing 90 pages manually in .htaccess:
.htaccess
redirect 301 /somedeletedpage.htm http://www.example.com/
if 90 deleted pages do not have common characteristics that can be overridden.
, 301, , . 404 410. 404, , .
Source: https://habr.com/ru/post/1721085/More articles:Guest application web application - javajava: search and replace in a stream - javaCan Java be used to write a Win32 system service? - javaSql Получить всех детей родителя - sqlIn HTTP, what is REST? - httpNeed advice on creating a new ASP.NET application - jqueryBDD Testing Structures - RSpec and Cucumber - objective-cProblem understanding XOR linked list - linked-listSuggestions for correcting people's names, so they are capitalized correctly - phpПространства имен REST + json + JAXB + - jsonAll Articles