DMXzone Database Connector PHP Support Product Page

Solved

Problems using the extension with friendly URLs

Reported 27 Mar 2014 21:55:46
1
has this problem
27 Mar 2014 21:55:46 Marcel Haag posted:
I have problems using the extension with friendly URLs. Is there a workaround?I want to use domain.com/name/ instead of domain.com/index.php?id=name

I use the following .htaccess code:

RewriteEngine On
RewriteCond %{REQUEST_URI} !^/(admin|kundenportal|zaehlerablesung)
RewriteRule ^([^/]*)/$ ?id=$1 [L]
RewriteRule ^([^/]*)/([^/]*)/$ ?id=$1&id_cms=$2 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !(.*)/$
RewriteRule ^(.*)$ http://%{HTTP_HOST}/$1/ [L,R=301]

Replies

Replied 28 Mar 2014 11:02:57
28 Mar 2014 11:02:57 Teodor Kuduschiev replied:
Hello Marcel,
Could you please provide a link to such a page?
Replied 28 Mar 2014 14:22:19
28 Mar 2014 14:22:19 Marcel Haag replied:
Hello Teodor,
it is a production site so I changed the content template (with DMXzone Database Connector PHP) for you for one link.

www.domain.de/wir/ => does not work (changed links)
www.domain.de/index.php?id=wir => works (changed links)
Replied 28 Mar 2014 15:29:31
28 Mar 2014 15:29:31 Teodor Kuduschiev replied:
Hello,
Both of the links cannot load - are you sure the site is up and running?
Replied 28 Mar 2014 15:35:27
28 Mar 2014 15:35:27 Marcel Haag replied:
Please try again. We had a problem with the server,
Replied 28 Mar 2014 16:05:27
28 Mar 2014 16:05:27 Teodor Kuduschiev replied:
Hello,
Please change in your code:
"dmxDatabaseSources/content.php?id={{$URL.id}}&limit=25"
to
"dmxDatabaseSources/content.php?id=<?php echo $_GET['id']; ?>&limit=25"
This will fix your issue. We are going to improve this in the next update.
Replied 28 Mar 2014 16:11:35
28 Mar 2014 16:11:35 Marcel Haag replied:
Hello Teodor,
Thanks!! It is working now!

Reply to this topic