Welkom bij Joomla!NL

Om alle mogelijkheden van dit forum te kunnen gebruiken, moet je je eerst registreren.

Vermeld in iedere vraag duidelijk:
  1. De versie van Joomla! 3.X die je gebruikt
  2. De volledige url van je website indien mogelijk.
  3. De versie van de extensie waar de vraag over gaat.

.htaccess redirect werkt niet met oude joomla links.

.htaccess redirect werkt niet met oude joomla links.

07 feb 2018 15:15 - 07 feb 2018 15:20
#1
Beste allen,

Ik probeer via .htaccess alle oude links van een website (joomla 1.5) om te zetten naar de nieuwe links/website.
Niets lukt echter. Via verwijzingsbeheer werkt het wel.

Dit is wat ik doe in .htaccess:
Code:
Redirect 301 "index.php?com_content&view=article&id=x:artikel-naam&catid=x:categorie-x-xxxxxxx&Itemid=xxx" http://mijndomein.nl
Ik heb van alles geprobeerd:
Zonder aanhalingstekens - met aanhalingstekens ->
/ ervoor
- index.php
met/zonder vraagteken
Strippen van .htaccess i.v.m. strippen index.php
etc.

Normale urls werken wel.

Dit is mijn complete .htaccess:
Code:
<Limit GET> order allow,deny allow from all </Limit> IndexIgnore * Options +FollowSymlinks Options -Indexes RewriteEngine On RewriteCond %{HTTP_HOST} www.mijndomein.nl RewriteRule (.*) https://mijndomein.nl/$1 [R=301,L] AddOutputFilterByType DEFLATE text/plain AddOutputFilterByType DEFLATE text/html AddOutputFilterByType DEFLATE text/xml AddOutputFilterByType DEFLATE text/css AddOutputFilterByType DEFLATE application/xml AddOutputFilterByType DEFLATE application/xhtml+xml AddOutputFilterByType DEFLATE application/rss+xml AddOutputFilterByType DEFLATE application/javascript AddOutputFilterByType DEFLATE application/x-javascript ExpiresActive on ExpiresByType text/css "access plus 14 days" ExpiresByType text/xml "access plus 0 seconds" ExpiresByType text/javascript "access plus 1 month" ExpiresByType text/x-javascript "access plus 1 month" ExpiresByType application/javascript "access plus 1 month" ExpiresByType application/x-javascript "access plus 1 month" ExpiresByType image/ico "access plus 14 days" ExpiresByType image/jpg "access plus 14 days" ExpiresByType image/jpeg "access plus 14 days" ExpiresByType image/gif "access plus 14 days" ExpiresByType image/png "access plus 14 days" ExpiresByType image/svg+xml "access plus 1 month" ExpiresByType text/html "access plus 14 days" ExpiresByType video/ogg "access plus 1 month" ExpiresByType audio/ogg "access plus 1 month" ExpiresByType video/mp4 "access plus 1 month" ExpiresByType video/webm "access plus 1 month" ExpiresByType application/x-font-woff "access plus 1 month" ExpiresByType application/vnd.ms-fontobject "access plus 1 month" ExpiresByType application/xml "access plus 0 seconds" ExpiresByType application/json "access plus 0 seconds" ExpiresByType application/rss+xml "access plus 1 hour" ExpiresByType application/atom+xml "access plus 1 hour" ## EXPIRES CACHING ## # INDEX.PHP UIT URL # Removes index.php from ExpressionEngine URLs RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC] RewriteCond %{REQUEST_URI} !/system/.* [NC] RewriteRule (.*?)index\.php/*(.*) /$1$2 [R=301,NE,L] # Directs all EE web requests through the site index file RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /index.php/$1 [L] # EINDE INDEX.PHP UIT URL # Permanent URL redirect Redirect 301 "index.php?com_content&view=article&id=x:artikel-naam&catid=x:categorie-x-xxxxxxx&Itemid=xxx" http://mijndomein.nl
Hulp wordt zeer gewaardeerd.

Edit Romke: Ik heb de code tussen codetags geplaatst, volgende keer graag zelf doen.


Dank. Mijn excuus.
Laatst bewerkt 07 feb 2018 15:20 door smoby.
  • smoby
  • smoby's berichtenfoto Heeft onderwerp gestart
  • Nieuw op Joomla!NL
  • Nieuw op Joomla!NL
  • Berichten: 4

.htaccess redirect werkt niet met oude joomla links.

07 feb 2018 15:44
#2
Heb je misschien hier iets aan? Of deze ?
Groeten, Romke
Voordat je een vraag post, gebruik eerst de zoekfunctie van ons forum eens.
Vragen uitsluitend via dit Forum
Is je vraag opgelost? Dan kan je hem zelf sluiten .
Wil je Joomla!NL steunen? Dat kan met een donatie.

  • Romke
  • Romke's Profielfoto
  • Algemeen Moderator
  • Algemeen Moderator
  • Berichten: 3629

.htaccess redirect werkt niet met oude joomla links.

08 feb 2018 13:19
#3
Dank je wel voor de links/reactie.
Ga ze vandaag eens bekijken. Had er al hoofdpijn van gekregen, dus toen gingen die websites mij even te ver ... :ohmy:
Even moed verzamelen.
  • smoby
  • smoby's berichtenfoto Heeft onderwerp gestart
  • Nieuw op Joomla!NL
  • Nieuw op Joomla!NL
  • Berichten: 4
Moderators: PeterJuliank92JelleRomke
Tijd voor maken pagina: 1.204 seconden

Wil je Joomla!NL steunen?

Steun Joomla!NLAlle teamleden werken enthousiast, op vrijwillige basis, mee aan Joomla!NL. Maar een website met forum kost nu eenmaal geld. Dus als je Joomla!NL wilt steunen, dan kan dat, graag zelfs!

Lees hier meer informatie