Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2008-01-04 17:26:05

AndrijaM
Member
From: Belgrade, Serbia
Registered: 2007-12-22
Posts: 190
Website

Re: Problem when moving live site to local server

I’m aware of mod_rewrite thing, and already enabled it. And it wasn’t working.

So, I deleted everything and start all over again. I have a book Textpattern Solutions, and followed
the tutorial how to setup a local server with xampp. After finishing, I took my live site and just
rewrite my local instalation with the db and the www files of live site. Just changed the paths and now
I got clean urls and everything is working.

Just one thing i’m not sure about.

I used absolute paths on web site. And that paths are, of course, not working on local server.

What is generaly the best way to write a link to sections or articles or categories? For instance, if I want to
put a link on some text, that is pointing to some other section in my site is

<txp:section name=“mySection”>Go there</txp:section>

the correct way to do it?

Offline

#14 2008-01-04 17:56:26

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

Re: Problem when moving live site to local server

AndrijaM wrote:

I’m aware of mod_rewrite thing, and already enabled it. And it wasn’t working.

kind of a moot point now but are you sure you restarted your apache server when you enabled mod_rewrite?

Just one thing i’m not sure about.

I used absolute paths on web site. And that paths are, of course, not working on local server.

What is generaly the best way to write a link to sections or articles or categories? For instance, if I want to
put a link on some text, that is pointing to some other section in my site is

<txp:section name=“mySection”>Go there</txp:section>

the correct way to do it?

there isn’t a right or wrong way to do it. but yes that would work just fine.

Offline

#15 2008-01-05 09:31:08

AndrijaM
Member
From: Belgrade, Serbia
Registered: 2007-12-22
Posts: 190
Website

Re: Problem when moving live site to local server

iblastoff wrote:

kind of a moot point now but are you sure you restarted your apache server when you enabled mod_rewrite?

Yes, I am sure. I dont know what was the problem, but following the tutorial from book txp solutions, I had to change this files:

C:\WINDOWS\
SYSTEM32\DRIVERS\ETC\HOSTS

and

C:\Program
Files\xampp\apache\conf\extra\httpd-vhosts.conf

which I didn’t change the first time, becouse I was using

http://localhost/

path. Maybe that was the problem, dont know.
Everything is working now.

Thanks again.

Last edited by AndrijaM (2008-01-05 09:32:39)

Offline

#16 2008-01-05 11:31:53

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Problem when moving live site to local server

When creating internal site links I use the <txp:site_url /> tag which should make them pretty portable.


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

Board footer

Powered by FluxBB