Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Can you tell me in english what the .htaccess file does pretty please?
Like stevechamp and peterj from page 1 of this post, but now in 2010 not 2005, I too am looking for .htaccess rules written to suit a Zeus hosting environment.
The hosting company has asked “Please tell us what exactly are you trying to accomplish”.
In the hope that they wil be able to write the Zeus rules, can anyone tell me in plain language what the default .htaccess rules are doing? I am a bit of a lightweight when it comes to understanding regular expressions etc?
Thanks lots in advance for any help!
Cheers, -Alan
At LAST I’ve cheerfully donated to the core devs at #TXP. I only wish I were able to give more. Thanks to the devs and ALL fellow TXPers. -A
Offline
Re: Can you tell me in english what the .htaccess file does pretty please?
.htaccess just tells the server that requests must go thru index.php, if it’s not a existing file or directory. Index.php then splits the URI and decides what to do with the parts.
# Turn Rewrite engine on
RewriteEngine On
# Check if the requested object is file or directory
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
# If above returns true pass thru the request and end rewriting
RewriteRule ^(.+) - [PT,L]
# Otherwise pass the request to index.php
RewriteRule ^(.*) index.php
Offline
Re: Can you tell me in english what the .htaccess file does pretty please?
THANKS Gocom!
At LAST I’ve cheerfully donated to the core devs at #TXP. I only wish I were able to give more. Thanks to the devs and ALL fellow TXPers. -A
Offline
Re: Can you tell me in english what the .htaccess file does pretty please?
>:-(
oUCH!
I just got quoted $450 by a hosting Co. to re-write this pseudo code (tks to Jukka for supplying) in Zeus webserver code:
# Turn Rewrite engine on
# Check if the requested object is file or directory
# If above returns true pass thru the request and end rewriting
# Otherwise pass the request to index.php
How sad that some companies treat customers like this…
I wish I knew someone who worked at Zeus and could short-circuit this poorest-value solution. [sigh]
At LAST I’ve cheerfully donated to the core devs at #TXP. I only wish I were able to give more. Thanks to the devs and ALL fellow TXPers. -A
Offline
#5 2010-04-30 00:18:34
- masa
- Member
- From: North Wales, UK
- Registered: 2005-11-25
- Posts: 1,095
Re: Can you tell me in english what the .htaccess file does pretty please?
I have one site on a Zeus server and it works fine in messy-urls mode – no need to have the .htaccess rewritten.
BTW here is my old thread
Last edited by masa (2010-04-30 00:24:53)
Offline
Re: Can you tell me in english what the .htaccess file does pretty please?
Thanks Martin. Very good to know it works AOK in messy mode — I had assumed it would, but I too often get bitten when I assume…
My problem was just a desire for prettyness and SEO – wanting the URLs to add what little SEO weight they can to the pages. It’ll be a shame for TXP and me to be able to do that and be thwarted by the hosting Co., but, worse things happen at sea, as they say. Cheers, -Alan
At LAST I’ve cheerfully donated to the core devs at #TXP. I only wish I were able to give more. Thanks to the devs and ALL fellow TXPers. -A
Offline