Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#73 2008-07-16 11:40:59
- kevinmcdougall
- Member
- Registered: 2007-02-08
- Posts: 55
Re: Post your Clean URL .htaccess tweaks here
Hi all,
I’m having some trouble with TXP’s .htaccess after installing Cubecart in a subdirectory of a TXP install name “store”.
I’ve used the .htaccess recommended here for the host which is 1and1 (UK) and that was working fine, but now any requests to /store or /store/category/product produces a 404 error in TXP. Can I modify the .htaccess in some way to ignore requests to /store and employ the rules in the .htaccess file in the /store directory instead?
Currently, the TXP .htaccess file is as follows;
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>
Any tips would be really appreciated!
Offline
#74 2008-09-17 11:38:58
- Joker83
- New Member
- Registered: 2008-02-13
- Posts: 4
Re: Post your Clean URL .htaccess tweaks here
I work in local and I have installed Apache on my PC. Here the soecifics:
Versione di Textpattern: 4.0.6 (r2805)
Ultimo aggiornamento: 2008-09-09 10:37:46/2008-01-27 17:59:00
Radice del documento: C:/Programmi/Apache Software Foundation/Apache2.2/htdocs (C:\Programmi\Apache Software Foundation\Apache2.2\htdocs)
$path_to_site: C:\Programmi\Apache Software Foundation\Apache2.2\htdocs\azimut
Percorso di Textpattern: C:\Programmi\Apache Software Foundation\Apache2.2\htdocs\azimut\textpattern
Modalità link permanente: section_id_title
Directory temporanea: C:\Programmi\Apache Software Foundation\Apache2.2\htdocs\azimut\textpattern\tmp
URL del sito: localhost/azimut
Versione di PHP: 5.2.6
GD Image Library: bundled (2.0.34 compatible); formati supportati: GIF, JPG, PNG.
Ora locale server: 2008-09-17 13:23:52
MySQL: 5.0.51b-community-nt
Locale: Italian_Italy.1252
Server: Apache/2.2.9 (Win32) PHP/5.2.6
Versione di Apache: Apache/2.2.9 (Win32) PHP/5.2.6
PHP Server API: apache2handler
Header RFC 2616:
Sistema operativo server: Windows NT 5.1
Plug-in attivi: sab_substr-0.2m
The clean Urls don’t work.. Is there anubody that knows the solution?
Thank you
Offline
#75 2008-09-17 13:03:07
- Joker83
- New Member
- Registered: 2008-02-13
- Posts: 4
Re: Post your Clean URL .htaccess tweaks here
I have found the solution. :)
Offline
#76 2008-10-21 05:37:43
- dadave
- New Member
- Registered: 2007-03-21
- Posts: 6
Re: Post your Clean URL .htaccess tweaks here
kvnmcwebn wrote:
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
the above htaccess file returns a 404 error on media temple gridserver. does anyone please have advice on how to run clean url’s on a domain like this:
imgoingcrazy.domain.com
thanks very much.
Last edited by dadave (2008-10-21 05:38:23)
Offline
#77 2009-10-04 22:21:23
- tbJohnson
- Member
- Registered: 2009-10-02
- Posts: 10
Re: Post your Clean URL .htaccess tweaks here
my old .htaccess was this..
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
Options +FollowSymLinks
RewriteEngine On
When I used the default .htaccess from Textpattern 4.2.0, I couldn’t access my databases, are their any features of the new .htaccess that I am missing by using my old .htaccess? Everything seems to work, so should I just be happy it works?
Offline
#78 2009-10-05 21:27:00
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Post your Clean URL .htaccess tweaks here
Does it work if you just uncomment the first two lines of the default .htaccess? Like this:
DirectoryIndex index.php index.html
Options +FollowSymLinks
#Options -Indexes
<IfModule mod_rewrite.c>
RewriteEngine On
#RewriteBase /relative/web/path/
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) - [PT,L]
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^(.*) index.php
RewriteCond %{HTTP:Authorization} !^$
RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]
</IfModule>
#php_value register_globals 0
BTW this thread is not meant for support questions, next time please use the How do I… forum. Thanks.
Offline
#79 2009-10-22 23:41:02
- jcclow
- New Member
- Registered: 2009-10-22
- Posts: 1
Re: Post your Clean URL .htaccess tweaks here
I can confirm this works for 1and1 in the states. Thanks mrdale!
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
Offline
#80 2009-11-17 14:36:23
- eritropel
- Member
- From: Hamburg
- Registered: 2009-08-27
- Posts: 26
Re: Post your Clean URL .htaccess tweaks here
jcclow schrieb:
I can confirm this works for 1and1 in the states. Thanks mrdale!
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
Thank You! This works also for 1&1 germany.
(edited code block escape. -Els)
Last edited by els (2009-11-17 17:39:07)
Offline
#81 2009-11-25 21:38:43
- B-Rated
- New Member
- Registered: 2009-11-25
- Posts: 1
Re: Post your Clean URL .htaccess tweaks here
I have been struggling to get clean urls working on a TextPattern instance running on Amazon’s EC2.
.htaccess tweaks aside. I have spent a couple of hours struggling with tweaks until I found that my problem was that the change to apache2.conf was being overridden by settings in /etc/apache2/sites-available/default. Once I opened default, I found:
<Directory /var/www/> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory>
I changed this entry to:
<Directory /var/www/> Options Indexes FollowSymLinks MultiViews AllowOverride FileInfo Order allow,deny allow from all </Directory>
Now the default .htaccess file works like a charm. This article on apache2’s scheme for hosting multiple websites helped me pin this down: http://linuxhelp.blogspot.com/2006/02/host-websites-on-your-local-machine.html
Offline
#82 2009-12-22 22:16:34
- amavai
- Member
- Registered: 2009-08-25
- Posts: 37
Re: Post your Clean URL .htaccess tweaks here
.
Last edited by amavai (2010-02-06 12:47:03)
Offline
#83 2009-12-24 07:29:03
- Carol
- New Member
- Registered: 2009-12-24
- Posts: 1
Re: Post your Clean URL .htaccess tweaks here
Posting for a shared hosting – Telushosting (Western Canada) – success after some trial and error
Pre-flight check
All checks passed!
.htaccess file contents:
————————————
#DirectoryIndex index.php index.html
#Options +FollowSymLinks
#Options -Indexes
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) - [PT,L]
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^(.*) index.php
RewriteCond %{HTTP:Authorization} !^$
RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]
</IfModule>
#php_value register_globals 0
Last edited by Carol (2009-12-24 07:31:00)
Offline
#84 2010-01-11 02:44:04
- stefbourdon
- New Member
- Registered: 2010-01-11
- Posts: 1
Re: Post your Clean URL .htaccess tweaks here
This works with Textpattern 4.2.0 for accounts hosted on priorweb (Belgium) (found on joomla support forum)
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/index.php
RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$ [NC]
RewriteRule (.*) index.php
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
Offline