Go Back   cPanel Forums > General Discussion > cPanel Newbies

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-15-2009, 08:58 PM
Registered User
 
Join Date: Jun 2009
Posts: 4
zaletabakman is on a distinguished road
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 10:32 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 06-15-2009, 10:34 PM
Infopro's Avatar
Forum Moderator
 
Join Date: May 2003
Location: Pennsylvania
Posts: 3,449
Infopro is on a distinguished road
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 06-15-2009, 10:36 PM
cPanelEricE's Avatar
cPanel Staff (Administrator)
 
Join Date: Nov 2007
Location: Texas
Posts: 158
cPanelEricE is on a distinguished road
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.
__________________
--Eric(E)

Using Enkompass compared to cPanel is like going to a MacDonald’s in France, sure they’ve got the same things we have over here, but it’s a little different.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 06-15-2009, 11:58 PM
Registered User
 
Join Date: Jun 2009
Posts: 4
zaletabakman is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 06-16-2009, 01:19 AM
Infopro's Avatar
Forum Moderator
 
Join Date: May 2003
Location: Pennsylvania
Posts: 3,449
Infopro is on a distinguished road
Lightbulb

Quote:
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 06-16-2009, 06:50 AM
Registered User
 
Join Date: Jun 2009
Posts: 4
zaletabakman is on a distinguished road
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 06-16-2009, 10:07 AM
Registered User
 
Join Date: Nov 2008
Posts: 13
mattdmin is on a distinguished road
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 06-16-2009, 12:46 PM
Registered User
 
Join Date: Jun 2009
Posts: 4
zaletabakman is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to use httpd alias to show a robots.txt file only if robots.txt does not exist. nat cPanel and WHM Discussions 0 06-25-2007 11:35 AM
my cpanel server export .txt file all domain and all email users ? Axell35 cPanel Newbies 0 06-14-2007 11:45 AM
export all email address to txt file. ??? Axell35 Mail 0 06-11-2007 08:12 PM
i dont know how can i open file txt in SSH A_1 cPanel and WHM Discussions 6 01-08-2007 09:22 AM
file[/home/.cpan/sources/authors/01mailrc.txt] doesn't match jambalaia cPanel and WHM Discussions 1 01-13-2006 06:03 AM


All times are GMT -5. The time now is 04:24 PM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© cPanel Inc