Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2011-01-24 19:47:24

samlubus
New Member
Registered: 2011-01-24
Posts: 1

textpattern installation in a subfolder fails

Greetings Textpattern folks. I am a newbie. However, I did successfully install txp in my root domain i.e. mysite.com and things worked great there. I needed to reinstall the site to mysite.com/news so that Google wouldn’t list my index.php as my home page. I have tried every permutation of paths I can think of and tried the default from reinstall several times but no success. Is it possible that my htaccess needs to be different now? Please help; If you are in Sarasota Florida, I’ll buy you a beer.

Sam

Offline

#2 2011-01-24 20:56:30

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: textpattern installation in a subfolder fails

Welcome to Textpattern :)

If you didn’t modify the default .htaccess, you shouldn’t need to change anything after a move.
Did you move the files to the subdirectory, or was it a fresh install? If you moved it, there are a couple of things you can check:

  1. was .htaccess moved as well (in some ftp clients it’s not visible)?
  2. you need to change the paths in config.php (e.g. /path/to/textpattern becomes /path/to/news/textpattern)
  3. if you created a new database with another name, you need to change this in config.php as well
  4. is the site URL in Admin > Preferences correct?
  5. are the paths to the files and tmp folders in Advanced preferences correct?

Re 4 and 5: if you copied your existing database, you still need to change these in Preferences.

Offline

#3 2011-01-24 21:39:30

redbot
Plugin Author
Registered: 2006-02-14
Posts: 1,410

Re: textpattern installation in a subfolder fails

Hi,
I’m not totally sure but I seem to remember that in similar circumstances I had to slightly modify my .htaccess file.
If you want to try change this line:

	#RewriteBase /relative/web/path/

in:

	RewriteBase /news

Offline

Board footer

Powered by FluxBB