Chaning link directory

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
rj
Regular
Posts: 477
Joined: Sun Sep 10, 2006 2:53 pm

Chaning link directory

Post by rj »

I havent been around lately because Serendipity has been running too smoothly! :)

I am going to have change directories. servers or make a sub domain.
Is there anything I can do within Serendipity to have whatever links there are change when I make the change?

Thanx

RJ

PS: Is there a forum or perhaps a link to a website that discusses how blogrolls work and how Google search treats blogs? I guess something like an optimizing search and links of a blog website?

I think of all the information that accumulated in it over time and never a search result from the counter.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Chaning link directory

Post by garvinhicking »

Hi!
I am going to have change directories. servers or make a sub domain.
Is there anything I can do within Serendipity to have whatever links there are change when I make the change?
Yes, you'll need to follow the steps here:

http://www.s9y.org/11.html#A21
PS: Is there a forum or perhaps a link to a website that discusses how blogrolls work and how Google search treats blogs? I guess something like an optimizing search and links of a blog website?
Phew, at least I know of no such links. But I'm sure there must be essays about this. Did you already google up for words like "blog seo"?

HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
rj
Regular
Posts: 477
Joined: Sun Sep 10, 2006 2:53 pm

Post by rj »

Well I decided to just change the name of the directory.

I assume I go to the database at Godaddy and change the path name, then go change the path name on the server?

Or is there more to it.
My server is GoDaddy and they are ******* UP. :)

Damn, I am an idiot, and I call them and find I know more about things they they do. :)

RJ
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!
I assume I go to the database at Godaddy and change the path name, then go change the path name on the server?
Yes, you then need to go to the new location of your s9y admin panel, login and there change the paths to the new locations.

You might also need to make an SQL Dump of your database to replace all old directory names with the new directory, because all links to your old directory are still inside the old entries.

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
rj
Regular
Posts: 477
Joined: Sun Sep 10, 2006 2:53 pm

Post by rj »

When you say SLQ dump do you mean an EXPORT and then when I IMPORT it again the relative links change?
Or is this something to do with the BACKUP plugin?
Hmmm... The backup plugin? Does that backup just the serendipity files or the serendipity files AND the DB?


RJ
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Yes, with SQL DUmp I mean an export and re-import via phpMyAdmin or similar tools. This is because any links to old paths are stored in the serendipity_entries DB table. You could also edit each entry manually, but that would be more work.

The backup plugin you should not pay attention to regarding this matter.

It backs up the files AND the DB, but it can easily timeout or run out of memory, so I suggest to not really rely on it. This plugin has been somewhat unmaintained and only really works well for smaller databases/files.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
rj
Regular
Posts: 477
Joined: Sun Sep 10, 2006 2:53 pm

Post by rj »

Lets see if I have this right.
This seems DANGEROUS!! :)
My DB commands are rather limited at GODADDY.


I use the export DB command at my server and save it to my HD.

I then use the import DB command to load it back in the DB.

When do I do THIS? I imagine between the two, but this is one of those things I have to make sure of...

Go to my server and change the name of the serendipity directory to the name of my blog.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Hm, you sound confusing. What's your question? :-)

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
rj
Regular
Posts: 477
Joined: Sun Sep 10, 2006 2:53 pm

Post by rj »

I am always confused!

The right question!
here it is!
True or false? :)


I use the export DB command at my server and save it to my HD.

I THEN go change the name of the directory at the server.

I then use the import DB command to load it back in the DB.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

False :)

This is right:

I use the export DB command at my server and save it to my HD.

I THEN go change the name of the directory at the server.

I then edit the exported DB sql file and replace all occurences of the old directory name to the new one.

I then use the import DB command to load it back in the DB.

Then I am happy and can login at the new place

:)

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
rj
Regular
Posts: 477
Joined: Sun Sep 10, 2006 2:53 pm

Post by rj »

Got it.

The question is...

IF I do a FIND AND REPLACE in the DB will this work?
find: /serendipity
replace: /kick

Or will it replace things that should not be replaced? :)

Should I use a different syntax for the FIND and REPLACE?

thanx

RJ
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!
Or will it replace things that should not be replaced? :)
Only results will tell. ;)

You might want to try to replace "/serendipity instead, with the quote on the beginning. Maybe also '/serendipity as well with a single quote.

You could try to check the first occurences of the replacements and see if those make sense.

HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
rj
Regular
Posts: 477
Joined: Sun Sep 10, 2006 2:53 pm

Post by rj »

I understand... Thanx...
Post Reply