Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#61 2007-09-11 15:32:29

zensir
New Member
Registered: 2006-04-17
Posts: 7

Re: Post your Clean URL .htaccess tweaks here

Versión de Textpattern: 4.0.5 (r2466)
Última actualización: 2007-08-06 12:53:31/2007-08-06 12:44:47
Document root: /home/sinapsis/public_html/sinapsisvirtual
$path_to_site: /home/sinapsis/public_html/sinapsisvirtual
Path a Textpattern: /home/sinapsis/public_html/sinapsisvirtual/textpattern
Modo de enlace permanente: messy
open_basedir: /home/sinapsis/:/usr/lib/php:/usr/local/lib/php:/tmp
Directorio temporal: /tmp
URL del sitio: www.sinapsisvirtual.com
Versión de PHP: 4.4.7
Register globals: 1
Biblioteca de imagen GD: bundled (2.0.28 compatible); formatos soportados: GIF, JPG, PNG.
Tiempo Local del Servidor: 2007-09-11 08:29:29
MySQL: 4.1.22-standard-log
Local: es_ES.UTF-8
Servidor: Apache
Versión de Apache: Apache
PHP Server API: apache
Cabeceras RFC 2616:
Sistema Operativo del servidor: Linux 2.6.9-55.ELsmp
Plugins Activos: rss_admin_db_manager-4.3, wet_recent_comments-0.4

Comprobación previa:
————————————
Ruta para subir archivos no tiene permisos de escritura: /home/sinapsis/public_html/sinapsisvirtual/textpattern/files
————————————

Charset (default/config): latin1/utf8
character_set_client: utf8
character_set_connection: utf8
character_set_database: latin1
character_set_results: utf8
character_set_server: latin1
character_set_system: utf8
character_sets_dir: /usr/share/mysql/charsets/
17 Tables: -

Extensiones de PHP: xslt, xmlrpc/0.51, xml, wddx, tokenizer/0.1, standard/4.4.7, sockets, session, pspell, posix, pgsql, pdf, overload, mysql, mhash, mcrypt, imap, gmp, gettext, gd, ftp, curl, ctype, calendar, bcmath, zlib/1.1, pcre, openssl, apache, ionCube Loader, Zend Optimizer

/include/txp_category.php: r2243 (3706fea923cd77f7053f7803de169df4)
/include/txp_plugin.php: r1917 (c63f72f33986c08367672fc9fe7b42dd)
/include/txp_auth.php: r2356 (33255ec1ea1a825163c78272496d8783)
/include/txp_form.php: r1913 (ecea3fecf9d7d1f8088cda67f097eceb)
/include/txp_section.php: r1891 (1f0121b3e2969d94bc8a7fb98bfdfbd5)
/include/txp_tag.php: r2260 (1bd67bdb9dcfb72e34ea967e39406216)
/include/txp_list.php: r2450 (997a3b1bec7115bf49b76f62b28da146)
/include/txp_page.php: r2099 (56bde34b6c7bcb9123ac91e73065e894)
/include/txp_discuss.php: r2451 (91e0b29ef39a9471ae5c78d0b1bba086)
/include/txp_prefs.php: r2405 (a4b76476930b2376199f23fbfd5f1ac9)
/include/txp_log.php: r2439 (16730c34e2a437dd88b8f5cc7eff8218)
/include/txp_preview.php: r1238 (696728f35f3557b648c011bb4d6496c3)
/include/txp_image.php: r2439 (9fac6ed0d9d4c3d8196492051f38dc9a)
/include/txp_article.php: r2453 (bdac8fcac5df2f93f10afa7e50c3fb6f)
/include/txp_css.php: r2403 (4e8c52bb1cf5bfe2e2f0640892f9b92e)
/include/txp_admin.php: r2403 (f8700a3d453ece08e7f137b47c967eda)
/include/txp_link.php: r2463 (0a0171bf606296106332d3fdcb83a678)
/include/txp_diag.php: r2361 (dccf3269049dd25e59afdd7ad8d235cd)
/include/txp_file.php: r2403 (e62abd5fcadabe629322ed17135d89eb)
/include/txp_import.php: r1238 (70a6207c0f3604ecfc4b20369986c4d7)
/lib/admin_config.php: r1747 (a2eb09f94d7902a6e95750fc4abcea17)
/lib/txplib_misc.php: r2464 (615afd44a10311f1c0b7852d9bc15d24)
/lib/taglib.php: r1535 (9b519f9dc88791e5ee8eacc029dd6975)
/lib/txplib_head.php: r2404 (2e067b25997cf67cddbdd365570e69d5)
/lib/classTextile.php: r2462 (a031e2ea894e339711c601f230c5ee71)
/lib/txplib_html.php: r2403 (97e173da3058b438513df67fd7d1ceca)
/lib/txplib_db.php: r2406 (5ed67642f805639b54e381fb22efd208)
/lib/IXRClass.php: r765 (137b91497628f0058a2fca9eba5c3b7f)
/lib/txplib_forms.php: r2403 (438a734b52acef40b36d8a3ba23987e8)
/lib/class.thumb.php: r2329 (b2a2fda54371dbd6c40ba553941f090e)
/lib/constants.php: r2361 (ab6d51668fab1e3c98e7d520b1a59f0f)
/lib/txplib_update.php: r1239 (10f28a986d23187b436369dc29ab552f)
/lib/txplib_wrapper.php: r2286 (419125ec74a17a70bf1e86ebfcd45253)
/publish/taghandlers.php: r2444 (cc9de8f2018b01398a2ba542c5f5bdc6)
/publish/atom.php: r2402 (46c4402717f695fde0d49d806adfa4c4)
/publish/log.php: r1637 (5254d0f3942086bc55723923307a51db)
/publish/comment.php: r2460 (2d1ae1dec0784f044e7005fa5ed50930)
/publish/search.php: r1748 (8c86ebcb5be08e214d81ca15a32164ca)
/publish/rss.php: r2393 (09aac29bf22ffa71c1e118e851cff3c3)
/publish.php: r2436 (7087864f1e7c6efe096d3b8e07c350b1)
/index.php: r2466 (30ecf35de5c1edc6ef68e780c8c79daa)
/css.php: r944 (8beba8f83a091068723435cdcdc02f2f)

Offline

#62 2007-09-15 00:10:05

mattmikulla
Member
From: Nashville Tennessee
Registered: 2004-08-25
Posts: 281
Website

Re: Post your Clean URL .htaccess tweaks here

Is there a problem or issue?

I have just moved servers and updated to 4.05. When I check diagnostics I get a pass. When I go high I fail. When I check again I pass. Not sure.


Art Rogue – Fine Art Photography

Offline

#63 2007-10-10 09:15:25

lee
Member
From: Normandy, France
Registered: 2004-06-17
Posts: 831

Re: Post your Clean URL .htaccess tweaks here

Dale, thanks for the 1and1 htaccess settings.

Offline

#64 2007-10-10 16:07:26

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: Post your Clean URL .htaccess tweaks here

np fellas. Glad it worked.

Offline

#65 2008-02-01 08:24:50

waznelle
Member
From: Australia
Registered: 2007-01-16
Posts: 13
Website

Re: Post your Clean URL .htaccess tweaks here

I’m using Mac Os 10.4, with txp 4.0.5
To enable .htaccess and mod-rewrite, I followed instructions from:
http://www.clagnut.com/blog/350/
and
http://forum.textpattern.com/viewtopic.php?pid=111353#p111353

If I remove the .htaccess, I have no problem viewing the site, bit then if I use the default .htaccess file I get a 404 error.
I’ve tried most of the suggestions but it still doesn’t work.
Would anyone have any suggestions on how to fix this?

TIA,
Elle

Offline

#66 2008-02-01 11:42:01

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: Post your Clean URL .htaccess tweaks here

I don’t really know what I’m talking about in this area, but the following has worked for me:

On my 10.4 Mac I can use the default TXP 4.0.5 .htaccess with no problem — i.e., I haven’t uncommented any lines.

My httpd.conf differs from the default at the following points:

  • line 240, uncomment
  • line 284, uncomment
  • line 399, add Includes
  • line 406, change to All
  • line 445, add index.php
  • line 523, added the line DefaultType application/x-httpd-php
  • VirtualHost blocks for name-based virtual hosting

In /private/etc/httpd/users/ I have a my_user_name.conf file, containing:

<Directory "/Users/my_user_name/Sites/">
	Options All Multiviews
	AllowOverride All
	Order allow,deny
	Allow from all
</Directory>

I’m sure there are better ways of doing this. Some of it is probably unnecessary. It’s all trial and error for me, but as I say it works. Good luck.

Last edited by jsoo (2008-02-01 11:43:06)


Code is topiary

Offline

#67 2008-02-02 04:37:10

waznelle
Member
From: Australia
Registered: 2007-01-16
Posts: 13
Website

Re: Post your Clean URL .htaccess tweaks here

Did the above and it didn’t work with the default .htaccess but I then uncommented the RewriteBase line and added the path to the folder where the site in development is, and all is good :)

My rule now says:
RewriteBase /~my_user_name/path/to/site

Thanks,
Elle

Offline

#68 2008-02-02 12:36:02

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: Post your Clean URL .htaccess tweaks here

waznelle wrote:

Did the above and it didn’t work with the default .htaccess but I then uncommented the RewriteBase line and added the path to the folder where the site in development is, and all is good :)

Glad to hear it’s working. I’m curious about the need for the RewriteBase statement. Are you using virtual hosting?
Are you using something other than the default OS X web sharing locations (/Library/WebServer/Documents or /~/Sites)?


Code is topiary

Offline

#69 2008-02-23 22:59:16

Wayman
New Member
Registered: 2008-02-09
Posts: 2

Re: Post your Clean URL .htaccess tweaks here

Has anyone had success using clean URLs on MediaTemple grid-hosting. I’ve been working on this for a while now, and I’m scratching my head.

Offline

#70 2008-03-26 09:56:04

kvnmcwebn
Member
From: Ireland
Registered: 2007-01-27
Posts: 724
Website

Re: Post your Clean URL .htaccess tweaks here

anyone running clean urls on media temple grid hosting?

edited to say sorry i just read the above post after id posted,.

apparently its not possible to get clean urls working on media temple grid service.

im waiting on a reply from support as a last resort.

Last edited by kvnmcwebn (2008-03-26 10:00:06)


its a bad hen that wont scratch itself.
photogallery

Offline

#71 2008-04-04 09:37:36

kvnmcwebn
Member
From: Ireland
Registered: 2007-01-27
Posts: 724
Website

Re: Post your Clean URL .htaccess tweaks here

Clean urls dont seem to work properly on subdomains on media temple grid hosting. But they work allright on proper domains.
There is a thread on the media user temple forum about this but its not resolved yet.

edited to say ive got the mt grid serivice hosting running clean urls on both domains and subdomains

On a proper domain you can use the standard .htaccess file.

On subdomains it doesnt work BUT this one from Mr. Dale does work:

DirectoryIndex index.php index.html
Options +FollowSymLinks
RewriteBase /

<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+) – [PT,L] RewriteRule ^(.*) index.php
</IfModule>

#php_value register_globals 0

Last edited by kvnmcwebn (2008-04-07 13:59:48)


its a bad hen that wont scratch itself.
photogallery

Offline

#72 2008-06-30 16:55:41

moggie
Member
Registered: 2008-06-27
Posts: 11

Re: Post your Clean URL .htaccess tweaks here

Hi,

I’m not sure if this information is useful or not, but I thought I should post it just in case. These are the .htaccess settings I needed to use to make clean URLs work on my server.

I don’t know exactly what the diagnostics tool does to see if clean URLs are working, so I’m not sure why it says they don’t, but anyway, they do work.

Textpattern version: 4.0.6 (r2805)
Last Update: 2008-06-27 14:07:34/2008-06-27 14:05:07
Permanent link mode: section_id_title
Temporary directory path: /var/tmp
PHP version: 5.2.6
GD Image Library: unavailable
Server Local Time: 2008-06-30 17:44:16
MySQL: 5.0.51a
Locale: en_GB.UTF-8
Server: Apache/2.2.9 (FreeBSD) mod_ssl/2.2.9 OpenSSL/0.9.7e-p1 DAV/2 PHP/5.2.6
Apache version: Apache/2.2.9 (FreeBSD) mod_ssl/2.2.9 OpenSSL/0.9.7e-p1 DAV/2 PHP/5.2.6
PHP Server API: apache2handler
RFC 2616 headers:
Server OS: FreeBSD 6.2-RELEASE-p11
Active plugins: glx_if-0.7

Pre-flight check: 
------------------------
Clean URL test failed.
------------------------
.htaccess file contents: 
------------------------
#DirectoryIndex index.php index.html
#Options +FollowSymLinks
#Options -Indexes
<IfModule rewrite_module>
	RewriteEngine On
	RewriteBase /
	RewriteCond %{REQUEST_FILENAME} -f [OR]
	RewriteCond %{REQUEST_FILENAME} -d
	RewriteRule ^(.+) - [PT,L]
	RewriteRule ^(.*) index.php
	RewriteCond %{HTTP:Authorization}  !^$
	RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]
</IfModule>
#php_value register_globals 0
------------------------

Regards,
Moggie.

Offline

Board footer

Powered by FluxBB