Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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
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
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
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