forumindex niet bereikbaar

Plaats reactie
cubaplaza
Berichten: 26
Lid geworden op: 09 jun 2016, 13:59

forumindex niet bereikbaar

Bericht door cubaplaza » 26 aug 2016, 14:03

  • Adres van je forum: http://www.cubaplaza.nl
    Event. modificaties op je forum:pages, advertisement en google-code
    Wanneer ontstond het probleem?niet bekend
    phpBB versie:3.1.9


    Heb je onlangs iets veranderd aan je forum? o.a. wat aanpassingen in .htaccess (bijgesloten) en overall-header
    Wat is het probleem?Forumpagina niet bereikbaar: als je op link 'Forum' klikt, blijf je op de portaalpagina.

Code: Selecteer alles

Redirect 301 /landkaarten http://www.cubaplaza.nl/page/landkaarten
Redirect 301 /reisgidsen http://www.cubaplaza.nl/page/reisgidsen
Redirect 301 /taalgidsen http://www.cubaplaza.nl/page/taalgidsen
Redirect 301 /autoverhuur http://www.cubaplaza.nl/page/autoverhuur
Redirect 301 /fly-drive http://www.cubaplaza.nl/page/fly-drive
Redirect 301 /rondreizen http://www.cubaplaza.nl/page/rondreizen
Redirect 301 /vliegtickets http://www.cubaplaza.nl/page/vliegtickets
Redirect 301 /zonvakanties http://www.cubaplaza.nl/page/zonvakanties
Redirect 301 /adverteren http://www.cubaplaza.nl/page/adverteren
Redirect 301 /linkpartners http://www.cubaplaza.nl/page/linkpartners


## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType text/html "access 1 month"
ExpiresByType application/pdf "access 1 month"
ExpiresByType text/x-javascript "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 1 month"
</IfModule>
## EXPIRES CACHING ##

<IfModule mod_rewrite.c>
RewriteEngine on
rewritecond %{http_host} ^cubaplaza.nl

rewriteRule ^(.*) http://www.cubaplaza.nl/$1 [R=301,L] 
RewriteRule ^index.(php|html|htm|asp) http://www.cubaplaza.nl/ [R=301,L]
#
# Uncomment the statement below if URL rewriting doesn't
# work properly. If you installed phpBB in a subdirectory
# of your site, properly set the argument for the statement.
# e.g.: if your domain is test.com and you installed phpBB
# in http://www.test.com/phpBB/index.php you have to set
# the statement RewriteBase /phpBB/
#
#RewriteBase /

#
# Uncomment the statement below if you want to make use of
# HTTP authentication and it does not already work.
# This could be required if you are for example using PHP via Apache CGI.
#
#RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]

#
# The following 3 lines will rewrite URLs passed through the front controller
# to not require app.php in the actual URL. In other words, a controller is
# by default accessed at /app.php/my/controller, but can also be accessed at
# /my/controller
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ app.php [QSA,L]

#
# If symbolic links are not already being followed,
# uncomment the line below.
# http://anothersysadmin.wordpress.com/2008/06/10/mod_rewrite-forbidden-403-with-apache-228/
#
#Options +FollowSymLinks
</IfModule>

# With Apache 2.4 the "Order, Deny" syntax has been deprecated and moved from
# module mod_authz_host to a new module called mod_access_compat (which may be
# disabled) and a new "Require" syntax has been introduced to mod_authz_host.
# We could just conditionally provide both versions, but unfortunately Apache
# does not explicitly tell us its version if the module mod_version is not
# available. In this case, we check for the availability of module
# mod_authz_core (which should be on 2.4 or higher only) as a best guess.
<IfModule mod_version.c>
	<IfVersion < 2.4>
		<Files "config.php">
			Order Allow,Deny
			Deny from All
		</Files>
		<Files "common.php">
			Order Allow,Deny
			Deny from All
		</Files>
	</IfVersion>
	<IfVersion >= 2.4>
		<Files "config.php">
			Require all denied
		</Files>
		<Files "common.php">
			Require all denied
		</Files>
	</IfVersion>
</IfModule>
<IfModule !mod_version.c>
	<IfModule !mod_authz_core.c>
		<Files "config.php">
			Order Allow,Deny
			Deny from All
		</Files>
		<Files "common.php">
			Order Allow,Deny
			Deny from All
		</Files>
	</IfModule>
	<IfModule mod_authz_core.c>
		<Files "config.php">
			Require all denied
		</Files>
		<Files "common.php">
			Require all denied
		</Files>
	</IfModule>
</IfModule>
<IfModule mod_deflate.c>
  # Compress HTML, CSS, JavaScript, Text, XML and fonts
  AddOutputFilterByType DEFLATE application/javascript
  AddOutputFilterByType DEFLATE application/rss+xml
  AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
  AddOutputFilterByType DEFLATE application/x-font
  AddOutputFilterByType DEFLATE application/x-font-opentype
  AddOutputFilterByType DEFLATE application/x-font-otf
  AddOutputFilterByType DEFLATE application/x-font-truetype
  AddOutputFilterByType DEFLATE application/x-font-ttf
  AddOutputFilterByType DEFLATE application/x-javascript
  AddOutputFilterByType DEFLATE application/xhtml+xml
  AddOutputFilterByType DEFLATE application/xml
  AddOutputFilterByType DEFLATE font/opentype
  AddOutputFilterByType DEFLATE font/otf
  AddOutputFilterByType DEFLATE font/ttf
  AddOutputFilterByType DEFLATE image/svg+xml
  AddOutputFilterByType DEFLATE image/x-icon
  AddOutputFilterByType DEFLATE text/css
  AddOutputFilterByType DEFLATE text/html
  AddOutputFilterByType DEFLATE text/javascript
  AddOutputFilterByType DEFLATE text/plain
  AddOutputFilterByType DEFLATE text/xml

  # Remove browser bugs (only needed for really old browsers)
  BrowserMatch ^Mozilla/4 gzip-only-text/html
  BrowserMatch ^Mozilla/4\.0[678] no-gzip
  BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
  Header append Vary User-Agent
</IfModule>
DirectoryIndex app.php index.php index.html index.htm



Gebruikersavatar
Ger
Berichten: 4864
Lid geworden op: 03 jan 2006, 22:23
Locatie: 192.68.1.100
Contacteer:

Re: forumindex niet bereikbaar

Bericht door Ger » 26 aug 2016, 15:49

ik zie deze regel:

Code: Selecteer alles

RewriteRule ^index.(php|html|htm|asp) http://www.cubaplaza.nl/ [R=301,L]
Ik weet niet waarom je die erin hebt staan, maar die zorgt ervoor dat indien je index.php aanroept, je naar de root wordt doorgestuurd. Dat is op zich niet erg, maar je hebt ook deze regel:

Code: Selecteer alles

DirectoryIndex app.php index.php index.html index.htm
Die zorgt ervoor dat indien je een map aanroept (root is ook een map) automatisch app.php wordt geladen indien beschikbaar. Die laadt je weer je portal in.

Kortom: de eerste regel stuurt je vanaf je forumindex naar de root, de tweede regel stuurt je vanaf de root naar je portal. En dat gaat dus mis.

Waarschijnlijk heb je de eerste regel erin gezet in een poging tot SEO. Haal die liever weg. Het is geneuzel in de marge wat je meer gedoe oplevert dan dat je er ooit in SEO aan gaat hebben.

cubaplaza
Berichten: 26
Lid geworden op: 09 jun 2016, 13:59

Re: forumindex niet bereikbaar

Bericht door cubaplaza » 26 aug 2016, 18:09

Dank je wel Ger voor de uitleg.
betreffende regel weggehaald en daarmee lijkt het probleem te zijn getackled. :D
(Misschien dat ik in het vervolg de adviezen van deskundige SEO-bloggers eerst hier maar eens moet voorleggen alvorens deze klakkeloos over te nemen... :roll: )

Gebruikersavatar
Ger
Berichten: 4864
Lid geworden op: 03 jan 2006, 22:23
Locatie: 192.68.1.100
Contacteer:

Re: forumindex niet bereikbaar

Bericht door Ger » 26 aug 2016, 20:30

Graag gedaan :)
Het probleem met veel zelfbenoemde "SEO experts" is dat ze vaak met een standaard lijstje komen van dingen die wel eens zouden kunnen werken of ooit gewerkt hebben. Maar ten eerste zijn niet alle websites hetzelfde en ten tweede staat Google ook niet stil natuurlijk.

In mijn ogen is er maar één relevante SEO expert als het om de Nederlandse markt gaat: Google zelf. Nu gaat dit stukje .htaccess wat ik je heb laten verwijderen over zogeheten "duplicate content". Google zelf zegt daar dit over: https://support.google.com/webmasters/a ... 9066?hl=nl
En dat is precies zoals phpBB dat geïmplementeerd heeft. Ik zou het daar persoonlijk bij laten. :)

Plaats reactie