Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2008-01-25 09:00:59
- tc03
- Member
- Registered: 2007-11-06
- Posts: 92
.htaccess
I have been trying to find the .htaccess so I can try clean urls, but I can’t find it. Was there supposed to be one included in my dowload of txp (because there wasn’t), or am I supposed to modify the one that has always been in my public_html folder – if this is the case, it looks nothing like the ones in the examples.
I have looked everywhere (with hidden files shown).
Offline
Re: .htaccess
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#3 2008-01-25 11:14:31
- tc03
- Member
- Registered: 2007-11-06
- Posts: 92
Re: .htaccess
Ok so I have finally managed to get it there – just one question more (should it be in the public_html folder or inside the textpattern folder (inside the public_html)?
Offline
Re: .htaccess
It should be in the public_html folder at the same level as the index.php file.
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
#5 2008-01-25 23:15:39
- tc03
- Member
- Registered: 2007-11-06
- Posts: 92
Re: .htaccess
Just for future reference – if anybody is trying to upload this on mac os x (where .htaccess files are hidden), do the following:
1)download show all
(you can also run command in Terminal and try to relaunch the finder,
but this does the same job)
2) reveal all hidden files with it
3) find the .htaccess for textpattern
4) rename it “mv .htaccess htaccess”
5) Now you can upload it, no problems
6) use ftp client to rename it back to .htaccess
Offline
Re: .htaccess
tco3, you can also just run this from Terminal instead of using an app:
defaults write com.apple.finder AppleShowAllFiles TRUE
# relaunch finder
killall Finder
# turn off:
defaults write com.apple.finder AppleShowAllFiles FALSE
killall Finder
If your web server has ssh access, you can save yourself the hassle of uploading any files by downloading and installing TXP via command line.
# in terminal.app
ssh myuser@mysite.com
cd public_html
# latest dev version
svn co http://svn.textpattern.com/development/4.0/ ./
# OR last public release
svn export http://svn.textpattern.com/releases/4.0.5/source/ ./
# If your server doesn't have svn:
curl -O http://textpattern.com/file_download/36/textpattern-4.0.5.zip
unzip textpattern-4.0.5.zip
Last edited by jm (2008-01-26 03:02:13)
Offline
Re: .htaccess
tc03 wrote:
6) use ftp client to rename it back to .htaccess
jm’s recommendation for svn is the easier way.
But. . . .
If you are using an ftp client, you may not need the “ShowAll” app. Example: Transmit has the option of showing hidden files (View -> Show Invisible Files). With it you can see the downloaded .htaccess file, and then upload it without changing its name.
Oh – and theoretically w/ Transmit you can open two tabs and transfer directly from Textpattern’s servers to your server without downloading to your local computer, but I’ve never had much luck doing it that way.
Last edited by maverick (2008-01-26 00:54:12)
Offline
#8 2008-01-26 02:30:37
- tc03
- Member
- Registered: 2007-11-06
- Posts: 92
Re: .htaccess
Yeah thanks guys – i tried cyberduck’s show hidden files feature, but no luck, and as for the command line – i couldn’t work out how to relaunch finder. But anyway, all sorted now.
Offline
Re: .htaccess
Type in killall Finder
in the terminal to relaunch it – updated my post. Cyberducks’s hidden file feature only works for the server files too.
Last edited by jm (2008-01-26 03:03:24)
Offline