[Joomla] htaccess probleem

Pagina: 1
Acties:
  • 1.582 views sinds 30-01-2008
  • Reageer

  • Sequence
  • Registratie: Maart 2000
  • Laatst online: 27-05-2024

Sequence

Online marketing

Topicstarter
Mensen, ik heb een host waar ik 2 domeinen aan heb gekoppeld, beide websites zijn nog in ontwikkeling, maar ik heb ruzie met m'n htaccess.

domein #1 = http://www.kok-internet-marketing.nl
deze staat in de /www root van m'n hosting provider (apache)

domein #2 = http://www.ver-zeker.nl
deze staat in de /www/verzeker map, een submap dus.

Beide sites draaien op Joomla, beide sinds vanmiddag met de plugin JoomSEF. Nu werkt het eerste domein volledig naar wens, maar #2 geeft problemen sinds ik dat JoomSEF gebruik.

Bij de links in het menu (degene die zijn herschreven door de plugin) krijg ik de volgende foutmelding:
404: Not Found
Sorry, but the content you requested could not be found
FILE NOT FOUND: /hypotheken/index.php
URI:/hypotheken/index.php


Op deze server maak ik gebruik van 3 .htaccess bestanden, te weten:
• in de root (#1)
• in de map /www (#2)
• in de map /www/verzeker (#3)

Deze drie zal ik hieronder weergeven... wie vindt het probleem? Waarom werkt mijn ver-zeker.nl site niet goed?

htaccess #1 (uit de root)
code:
1
2
3
4
5
6
7
8
9
AddDefaultCharset UTF-8

RewriteEngine On
RewriteCond %{HTTP_HOST} ^ver-zeker.nl$ [NC]
RewriteRule ^(.*)$ http://www.ver-zeker.nl/$1 [R=301,NC]
RewriteCond %{HTTP_HOST} ^kok-internet-marketing.nl$ [NC]
RewriteRule ^(.*)$ http://www.kok-internet-marketing.nl/ [R=301,NC]

Options -Indexes


htaccess #2 (uit /www)
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
AddDefaultCharset UTF-8

RewriteEngine On
RewriteCond %{HTTP_HOST} ^informatiehoek.nl$ [NC]
RewriteRule ^(.*)$ http://www.informatiehoek.nl/ [R=301,L]

RewriteCond %{HTTP_HOST} ^www.ver-zeker.nl$ [NC]
RewriteCond %{REQUEST_URI} !/verzeker$ [NC]
RewriteRule ^(.*)$ /verzeker/$1 [NC,QSA,L]

Options -Indexes

## If Joomla is installed in the web server root
## RewriteBase /
## If Joomla is installed in a sub-directory
## RewriteBase /directory_name_here
RewriteBase /

## Begin 3rd-Party or OpenSEF Section
#RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR]  ##optional - see notes##
RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php
## End 3rd-Party or OpenSEF Section

## Joomla Security Section (has nothing to do with SEF/SEO)
## Begin - Rewrite rules to block out some common exploits
## If you experience problems on your site block out the operations listed below
## This attempts to block the most common type of exploit `attempts` to Joomla!
# Block out any script trying to set a mosConfig value through the URL
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
# Block out any script trying to base64_encode crap to send via URL
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
# Block out any script that includes a tag in URL
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Send all blocked request to homepage with 403 Forbidden error!
RewriteRule ^(.*)$ index.php [F,L]
## End - Rewrite rules to block out some common exploits


htaccess #3 (uit /www/verzeker)
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
AddDefaultCharset UTF-8

RewriteEngine On

## If Joomla is installed in the web server root
## RewriteBase /
## If Joomla is installed in a sub-directory
## RewriteBase /directory_name_here
RewriteBase /verzeker/

## Begin 3rd-Party or OpenSEF Section
RewriteCond %{REQUEST_URI} ^(/verzeker/component/option,com) [NC,OR]  ##optional - see notes##
RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php
## End 3rd-Party or OpenSEF Section

## Joomla Security Section (has nothing to do with SEF/SEO)
## Begin - Rewrite rules to block out some common exploits
## If you experience problems on your site block out the operations listed below
## This attempts to block the most common type of exploit `attempts` to Joomla!
# Block out any script trying to set a mosConfig value through the URL
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
# Block out any script trying to base64_encode crap to send via URL
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
# Block out any script that includes a tag in URL
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Send all blocked request to homepage with 403 Forbidden error!
RewriteRule ^(.*)$ index.php [F,L]
## End - Rewrite rules to block out some common exploits

Options -Indexes


Ik heb ondertussen al heel wat zitten knippen en plakken, maar zonder resultaat.
Ook het aanpassen van de RewriteBase naar / heeft geen zin.... Wie weet de oplossing?

[ Voor 4% gewijzigd door Sequence op 29-06-2007 15:17 ]


  • maarud
  • Registratie: Mei 2005
  • Laatst online: 23:12
probeer eens RewriteBase /verzeker (dus zonder die laatste /)

  • Sequence
  • Registratie: Maart 2000
  • Laatst online: 27-05-2024

Sequence

Online marketing

Topicstarter
maarud schreef op woensdag 27 juni 2007 @ 20:28:
probeer eens RewriteBase /verzeker (dus zonder die laatste /)
deze wijziging in htaccess #3 maakt geen verschil.

  • Sequence
  • Registratie: Maart 2000
  • Laatst online: 27-05-2024

Sequence

Online marketing

Topicstarter
anybody else?

  • Sequence
  • Registratie: Maart 2000
  • Laatst online: 27-05-2024

Sequence

Online marketing

Topicstarter
ik heb de htaccess bestanden al iets meer opgeschoond, maar nog steeds geen resultaat.

#1 (in de root)
code:
1
2
3
4
5
6
7
8
9
AddDefaultCharset UTF-8

RewriteEngine On
RewriteCond %{HTTP_HOST} ^ver-zeker.nl$ [NC]
RewriteRule ^(.*)$ http://www.ver-zeker.nl/ [R=301,NC]
RewriteCond %{HTTP_HOST} ^kok-internet-marketing.nl$ [NC]
RewriteRule ^(.*)$ http://www.kok-internet-marketing.nl/ [R=301,NC]

Options -Indexes
#2 (in /www)
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
AddDefaultCharset UTF-8

RewriteEngine On

RewriteCond %{HTTP_HOST} ^www.ver-zeker.nl$ [NC]
RewriteCond %{REQUEST_URI} !/verzeker$ [NC]
RewriteRule ^(.*)$ /verzeker/$1 [NC,QSA,L]

Options -Indexes

## If Joomla is installed in the web server root
## RewriteBase /
## If Joomla is installed in a sub-directory
## RewriteBase /directory_name_here
RewriteBase /

## Begin 3rd-Party or OpenSEF Section
#RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR]  ##optional - see notes##
RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php
## End 3rd-Party or OpenSEF Section

## Joomla Security Section (has nothing to do with SEF/SEO)
## Begin - Rewrite rules to block out some common exploits
## If you experience problems on your site block out the operations listed below
## This attempts to block the most common type of exploit `attempts` to Joomla!
# Block out any script trying to set a mosConfig value through the URL
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
# Block out any script trying to base64_encode crap to send via URL
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
# Block out any script that includes a tag in URL
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Send all blocked request to homepage with 403 Forbidden error!
RewriteRule ^(.*)$ index.php [F,L]
## End - Rewrite rules to block out some common exploits
#3 (in /www/verzeker)
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
AddDefaultCharset UTF-8

RewriteEngine On

## If Joomla is installed in the web server root
## RewriteBase /
## If Joomla is installed in a sub-directory
## RewriteBase /directory_name_here
RewriteBase /

## Begin 3rd-Party or OpenSEF Section
RewriteCond %{REQUEST_URI} ^(/verzeker/component/option,com) [NC,OR]  ##optional - see notes##
RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php
## End 3rd-Party or OpenSEF Section

## Joomla Security Section (has nothing to do with SEF/SEO)
## Begin - Rewrite rules to block out some common exploits
## If you experience problems on your site block out the operations listed below
## This attempts to block the most common type of exploit `attempts` to Joomla!
# Block out any script trying to set a mosConfig value through the URL
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
# Block out any script trying to base64_encode crap to send via URL
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
# Block out any script that includes a tag in URL
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Send all blocked request to homepage with 403 Forbidden error!
RewriteRule ^(.*)$ index.php [F,L]
## End - Rewrite rules to block out some common exploits

Options -Indexes