Recent Topics

1 Oct 07, 2005 23:15    

Hello all!

i recently moved to a new server and had to enable ExtraPath info and .htaccess files to remove the .php from my permalink urls...

My mod_rewrite is working ok (at least it seems so) and i am using the sample.htaccess with Isaac Schlueter´s mod_rewrite rules in my htaccess file.

# Apache configuration for the blog folder

RewriteEngine On 
# enter all the allowed folder names separated by |s 
RewriteCond %{REQUEST_URI} !^/(admin|gettext|htsrv|images|img|media|skins)(.*)$ 
RewriteRule (^[^\./]+)$ $1\.php 

# enter the same list of folder names here 
RewriteCond %{REQUEST_URI} !^/(admin|gettext|htsrv|images|img|media|skins)(.*)$ 
RewriteRule (^[^\./]+)/(.+)$  $1\.php/$2

# this will select the default blog template to be displayed
# if the URL is just .../blogs/
<IfModule mod_dir.c>
	DirectoryIndex index.php index.html
</IfModule>


# this will make register globals off in b2's directory
# just put a '#' sign before these three lines if you don't want that
<IfModule mod_php4.c>
	php_flag register_globals off
</IfModule>

# If you're using Apache 2, you may wish to try this for clean URLs:
 AcceptPathInfo	On

Anyway, this does remove the .php but now all my blogs and images are GONE! it just wont load them. If I rename .htaccess to "whatever" it will display skins and images again, but with ugly ".php"s in every url

Can someone give me a hint???

2 Oct 24, 2005 02:23

Why not try removing one part at a time from your .htaccess file until you figure out which part of the file is causing the problem. Then you can go from there.

Comments are closed on this archived website.