.Htacces infinite loop

Pagina: 1
Acties:

Onderwerpen


Acties:
  • 0 Henk 'm!

  • 2020Media
  • Registratie: Augustus 2002
  • Laatst online: 05-05 17:00
Ik probeer mijn site te redirecten van www.domein.com naar www.domein.com/sections/a
Echter wanneer ik dit doe word er altijd een infinite loop gecreëerd.

Mijn code zag er eerst zo uit:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

Redirect 301 / http://www.loldict.com/sections/a


Na een topic te hebben gelezen op stackoverflow heb ik het volgende geprobeerd:

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

Redirect 301 /index.php http://www.loldict.com/sections/a


maar dit helpt ook niet

[ Voor 0% gewijzigd door NMe op 20-08-2012 13:50 . Reden: Spam verwijderd. ]

May Lyssa aid you


Acties:
  • 0 Henk 'm!

  • NMe
  • Registratie: Februari 2004
  • Laatst online: 01-05 10:36

NMe

Quia Ego Sic Dico.

Vind je het gek als je alles dat géén index.php heet herschrijft om naar index.php te wijzen, om vervolgens een redirect te doen van index.php naar iets dat géén index.php is?

'E's fighting in there!' he stuttered, grabbing the captain's arm.
'All by himself?' said the captain.
'No, with everyone!' shouted Nobby, hopping from one foot to the other.