Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Another mod_rewrite problem...
Here’s the file:
#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]
RewriteRule ^(.*) index.php
</IfModule>
#php_value register_globals 0
If I upload this .htaccess file to the server, I get following error:
Not Found
The requested URL /home/tenfvan1/public_html/temp/index.php was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
So my bets are on a wrong .htaccess file… I made the site with MAMP on my laptop and am trying to put it online right now, but not without any problems…
Any suggestions?
Textpattern projects: Maxvoltar, Made by Elephant, Twunch
Offline
Re: Another mod_rewrite problem...
Try changing this:
RewriteRule ^(.*) index.php
into:
RewriteRule ^(.*) /index.php
Offline
Re: Another mod_rewrite problem...
Hey, Ruud, thanks for the quick reply!
When I do so, I get following error:
Forbidden
You don't have permission to access /index.php on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
I’m starting to think the url-rewriting doesn’t work, but the strange thing is it worked with a Wordpress installation…
Edit:
Ok, now it’s going entirely bananas!
When I go to the Pre-flight check, I get following values:
Web Domain DNS lookup fails: 216.104.33.6
$path_to_site is inaccessible.: /public_html
/public_html/index.php is inaccessible
Image directory is not writable: /public_html/images
File directory path is not writable: /files
Temporary directory path is not writable: /textpattern/tmp
.htaccess file is missing
Some Textpattern files have been modified:
/lib/txplib_head.php
Site URL preference might be incorrect: ans02.midphase.com/~tenfvan1
Clean URL test failed.
This really sucks… I didn’t even touched txplib_head.php!
Last edited by maxvoltar (2007-08-28 08:55:37)
Textpattern projects: Maxvoltar, Made by Elephant, Twunch
Offline
Re: Another mod_rewrite problem...
pretty sure your config.php is completely wrong.
when you go here:http://ans02.midphase.com/~tenfvan1/temp/index.php
you get database unavailable
Last edited by iblastoff (2007-08-28 09:09:44)
Offline
Re: Another mod_rewrite problem...
See this FAQ for more info.
Last edited by ruud (2007-08-28 09:00:22)
Offline
Re: Another mod_rewrite problem...
iblastoff wrote:
http://ans02.midphase.com/~tenfvan1/textpattern/
errr you’re using a different admin theme so your txplib_head was clearly modified…
Oh, right, forgot that part :S Is this a bad thing?
I think the main problem is that the site is on a temporary hosting. I’m gonna ask if I can work live instead. Should do the trick (I think…). Thanks anyway everybody!
Textpattern projects: Maxvoltar, Made by Elephant, Twunch
Offline
Pages: 1