Recent Topics

1 Feb 15, 2008 11:58    

My b2evolution Version: Not Entered

Hi folks!

I want this in my htaccess:

RewriteEngine on

RewriteCond %{HTTP_HOST} !^www\.domain\.net$
RewriteRule ^(.*)$ http://www\.domain.net/$1 [L,R=301]

This is my actual htaccess:

# BEGIN b2evolution
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END b2evolution

Everything I tried caused an error
:(

2 Feb 15, 2008 13:10

Try this :

# PHP SECURITY:
<IfModule mod_php4.c>
	php_flag register_globals off
</IfModule>
<IfModule mod_php5.c>
	php_flag register_globals off
</IfModule>

# DEFAULT DOCUMENT TO DISPLAY:
<IfModule mod_dir.c>
	DirectoryIndex index.php index.html
</IfModule>

RewriteEngine On
Options +FollowSymLinks

# prevent duplicate content issues, redirect non-www to www
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule (.*) http://www.domain.net/$1 [R=301,L]

# send all others to b2evolution
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule .* /index.php [L]

¥

3 Feb 15, 2008 13:31

doesn´t work...

Fehler: Umleitungsfehler

Die aufgerufene Website leitet die Anfrage so um, dass sie nie beendet werden kann.

same error as all tries before...

4 Feb 15, 2008 13:45

By any chance do you have www redirected to non-www in your cpanel ?

You should be able to tell by doing the reverse :

# PHP SECURITY:
<IfModule mod_php4.c>
   php_flag register_globals off
</IfModule>
<IfModule mod_php5.c>
   php_flag register_globals off
</IfModule>

# DEFAULT DOCUMENT TO DISPLAY:
<IfModule mod_dir.c>
   DirectoryIndex index.php index.html
</IfModule>

RewriteEngine On
Options +FollowSymLinks

# prevent dupliacte content issues, redirect www to non-www
RewriteCond %{HTTP_HOST} ^www\.(.*)$
RewriteRule (.*) http://%1/$1 [R=301,L]

¥

5 Feb 15, 2008 15:27

this time I got a 404 error... :(

6 Feb 15, 2008 16:45

Any chance of a link to where this is happening?

¥


Form is loading...