Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    Jun 2009
    Posts
    4

    Question How Do I export my redirects from Cpanel into a txt file?

    Hi There,

    I have a (hopefully) simple problem but i have no clue how to solve it.

    I have over 100 redirects in Cpanel using subdomains.

    I am moving hosting companies - but how do I get my redirects?

    The only way I can think of is Copy and paste.

    Seems kind of dumb - if anybody can get me started on how to export into a txt file I would appreciate it.

    I have tried google, I have tried the FAQ and couldn't find an answer.

    All help would be appreciated.

    Zale
    Last edited by Infopro; 06-15-2009 at 09:32 PM.

  2. #2
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,892
    cPanel/Enkompass Access Level

    Root Administrator

    Lightbulb

    Not sure I understand you, have you taken a look at the .htaccess file in the public_html directory? If you have setup a redirect to forward one URL to another, that's where they'd be located.

  3. #3
    Support Manager cPanelEric's Avatar
    Join Date
    Nov 2007
    Location
    Texas
    Posts
    488
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Howdy,

    The redirects should be in a .htaccess file for the folder you configured the sub-directory. In theory you could move that between servers but it's very relative to the path of directories on your new host.

  4. #4
    Registered User
    Join Date
    Jun 2009
    Posts
    4

    Default

    Quote Originally Posted by cpanelerice View Post
    Howdy,

    The redirects should be in a .htaccess file for the folder you configured the sub-directory. In theory you could move that between servers but it's very relative to the path of directories on your new host.
    Thank you for answering so quickly.

    I did check out the .htaccess files - but I have over 100 redirects.

    I figured since cpanel displayed them, allowed me to search them, then - they must be stored somewhere. I am certain cpanel doesn't scan the .htaccess files each time.

    They must be in some database somewhere. I looked using phpmyadmin, but couldn't t find anything that made sense to me. (but maybe I didn't know where to look)

    I sort looked around in data files but couldn't find anything.

    Its displayed and searchable, that means it stored.....

    But, I have no idea where cpanel stores its data for retreivale

  5. #5
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,892
    cPanel/Enkompass Access Level

    Root Administrator

    Lightbulb

    Its displayed and searchable, that means it stored.....
    Where are you talking about it being displayed? If you mean in the redirects section of your cPanel, those redirects are all stored in the .htaccess file (not files) of your account as explained previously. No where else.

    cPanel does check the .htaccess file each time you open the redirects section of your cPanel. Want to double check? Rename your .htaccess file to .htaccess.BAK then save. Then check the redirects section again.

    Note, by renaming that .htaccess file ALL redirects will break/no longer work.

  6. #6
    Registered User
    Join Date
    Jun 2009
    Posts
    4

    Default

    YUCH!!

    I sort of solved the problem,
    I used the rediirects display - set it to 500

    Then used a Screen copy
    Pasted into notepad - format was all messed - but data was there

    then uparrow - delete
    uparrow - delete

    etc etc etc.

    Pain - but it worked and hopefully I didn't delete something important by accident.

    Now I have it in a file - my new hosting company said they have a way of using the file to auto create it. They have something like cpanel called SiteManager

    I don't know if its custom or a packaged product.

    Thanks for everyone's help.

  7. #7
    Member
    Join Date
    Nov 2008
    Posts
    13

    Default Redirects and .htaccess

    If your just moving hosting accounts, you can simply take a copy of that .htaccess file and use it on another machine to copy ALL your redirects.

  8. #8
    Registered User
    Join Date
    Jun 2009
    Posts
    4

    Default

    Yes - I could.

    But that would mean distributing 100+ files around the system.

    I am incredibly lazy and it would be massively prone to error.

    Also, the redirects are intended as simple ways to let users access content.

    For example - my content are is in Wordpress, I make extensive use of categories to organize things.

    I have one called 77 Guerrilla Job Hunting tips.
    The URL is:
    77 Guerrilla Job Hunting Tips | Zale Tabakman
    but I tell the world to go to
    77 Guerrilla Job Hunting Tips | Zale Tabakman for
    77 Guerrilla Job Hunting Tips | Zale Tabakman

    I also have affiliate programs that I link out to. Why should the poor reader need to see complicated URL's when they can see simple things like:
    Guerrilla Job Search for
    Guerrilla Job Search

    I think its more effective than using TinyUrl or any of its competitors.

    And since they are really redirects - I don't actually need or want the file directories.

    Zale

Similar Threads & Tags
Similar threads

  1. L4D2 motd.txt and host.txt
    By jmeier64 in forum cPGS Discussions
    Replies: 5
    Last Post: 05-31-2010, 08:30 AM
  2. Replies: 0
    Last Post: 06-25-2007, 10:35 AM
  3. Replies: 0
    Last Post: 06-14-2007, 10:45 AM
  4. export all email address to txt file. ???
    By Axell35 in forum E-mail Discussions
    Replies: 0
    Last Post: 06-11-2007, 07:12 PM
  5. i dont know how can i open file txt in SSH
    By A_1 in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 01-08-2007, 08:22 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube