Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Another clean url / .htaccess problem
Hello all,
I installed the very last release of TP for a new website.
It’s been a long time since i worked on TP and i was quite happy about that.
Installed went fine, but when it came to clean url, again i have troubles unable to solve by my self !
Here what i did :
a .htaccess file with :
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) [T,L]
RewriteRule ^(.*) index.php
a httpdconf configure like this :
<code>
<VirtualHost * >
<Directory /home/mydir/wwwi>
AllowOverride Options FileInfo
</Directory>
</VirtualHost>
</code>
All this worked fine to display articles and comments (i didn’t tested on all cases) but i can not anymore access the back office using /textpattern/
It seems is trying to rewrite also this because i receive a 404 ?
How to bypass this ?
thanks a lot for ideas or tips
Last edited by luro (2006-05-01 13:29:00)
Offline
#2 2006-05-01 13:52:40
- KurtRaschke
- Plugin Author
- Registered: 2004-05-16
- Posts: 275
Re: Another clean url / .htaccess problem
Clean URLs and accessing the backend at /textpattern/ are two separate issues, and it’s not clear from your message which of the two you’re experiencing.
If clean URLs on the frontend are the problem, try switching to messy URLs, and see if that changes things. If you can’t access the backend, then you may have a larger problem with the way Apache is configured.
http://textpattern.com/faq/66/404-error-when-linking-to-article-pages
-Kurt
kurt@kurtraschke.com
Offline
Re: Another clean url / .htaccess problem
thanks Kurt,
i’ll try to be clear :
if my .htaccess is unabled (for example by renaming it) my front end and back end works fine (except of course the clean url).
if i try to activate clean urls, which for this requires to have the .htaccess available, then front end works but the back end not anymore. So i don’t think those are two separate issues.
I assume this is due to the fact that apache tries to rewrite the “/textpattern” part of the url when accessing to the back end but i don’t know enough in rewriting rules to find out.
Offline
#4 2006-05-01 14:13:25
- KurtRaschke
- Plugin Author
- Registered: 2004-05-16
- Posts: 275
Re: Another clean url / .htaccess problem
I would say that your diagnosis is correct. TXP’s .htaccess
rules work in most cases, but not all, and mod_rewrite
can be difficult to get working, especially when virtual hosts are involved. Your best course of action at this point may be to seek help from an Apache expert.
TXP does have a scheme for providing clean URLs without mod_rewrite
; you may find it useful.
http://textpattern.com/weblog/135/partly-messy-clean-urls-without-modrewrite-experimental
-Kurt
kurt@kurtraschke.com
Offline
Re: Another clean url / .htaccess problem
Thanks Kurt, i’ll try to find out with you recommandations
Offline
Pages: 1