#1
  1. Contributing User

    Join Date
    Aug 2010
    Posts
    75
    Rep Power
    9

    How can i redirect all internal pages to homepage of my site


    i had website with 10000 pages and i want to delete all content and redirect all internal pages to homepage of my site.

    i use 301 wordpress plugin how i must do it ? .. i mean is there an automation for it to save time?
  2. #2
  3. No Profile Picture
    Registered User
    SEO Chat Explorer (0 - 99 posts)

    Join Date
    Nov 2015
    Posts
    11
    Rep Power
    0
    Use your robots.txt file to block the internal pages.
    For example if your page URL is: http:/www.mysite.wordpress.com/about
    Use the code below in robots.txt of your website:
    Disallow: /about
  4. #3
  5. No Profile Picture
    Registered User

    Join Date
    Feb 2015
    Posts
    5
    Rep Power
    0
    You can do it on your .htaccess file.
  6. #4
  7. Contributing User
    SEO Chat Discoverer (100 - 499 posts)

    Join Date
    Jan 2011
    Location
    Buffalo, NY
    Posts
    315
    Rep Power
    541
    Open your sitemap in excel, create a column with all the urls you want to redirect (as a relative path), then a column that has your homepage for each row (also as a relative path), then save it as a csv. Use the wordpress plugin "Redirection" and import your redirects.

    I'm not 100% sure the format of the csv to import, I believe it is column A is the old, the B is the new, I would test it with a url first to make sure.
  8. #5
  9. No Profile Picture
    Registered User
    SEO Chat Explorer (0 - 99 posts)

    Join Date
    Aug 2015
    Posts
    4
    Rep Power
    0
    If your aim would redirecting all page to a single maintenance page (as the title could suggest also this), than use:

    RewriteEngine on RewriteCond %{REQUEST_URI} !/maintenance.php$ RewriteCond %{REMOTE_HOST} !^000\.000\.000\.000 RewriteRule $ /maintenance.php [R=302,L]
  10. #6
  11. No Profile Picture

    Join Date
    Dec 2015
    Posts
    3
    Rep Power
    0
    Originally Posted by forex1
    i had website with 10000 pages and i want to delete all content and redirect all internal pages to homepage of my site.

    i use 301 wordpress plugin how i must do it ? .. i mean is there an automation for it to save time?
    You do it in your .htaccess file.

    Code:
    RewriteEngine on
    RewriteCond %{HTTP_HOST} old\.com$
    RewriteRule .* new.com/ [L,R=301]
    Open up your ftp for the site. You probably have an htaccess file in the root for the domain. Copy this into it with the correct domain names.
  12. #7
  13. Contributing User
    SEO Chat Discoverer (100 - 499 posts)

    Join Date
    Jan 2011
    Location
    Buffalo, NY
    Posts
    315
    Rep Power
    541
    Robots.txt is for telling search engines what they shouldn't see. For example you could tell them they shouldn't crawl your login section. Robots.txt doesn't have the ability to create redirects, however .htaccess does.

    More on Robots.txt
    https://support.google.com/webmaster.../6062608?hl=en
  14. #8
  15. No Profile Picture
    Registered User
    SEO Chat Explorer (0 - 99 posts)

    Join Date
    Dec 2015
    Posts
    8
    Rep Power
    0
    There are two ways
    1. 301 redirection or 2. is .htaccess.

    Comments on this post

    • fathom : Where do you put #1 if not in #2?

Similar Threads

  1. Backlinks to homepage vs. internal pages
    By hasm in forum Google Optimization
    Replies: 6
    Last Post: Oct 28th, 2014, 11:08 AM
  2. Relation between internal pages and homepage
    By cunning_stunt in forum Google Optimization
    Replies: 2
    Last Post: Jun 25th, 2007, 03:45 PM
  3. internal pages have higher PR than homepage?
    By gzlatin in forum Google Optimization
    Replies: 2
    Last Post: Nov 10th, 2005, 08:10 AM

IMN logo majestic logo threadwatch logo seochat tools logo