Use of personalised URL code on web page that resides on a customers hosting server

194 views
Skip to first unread message

Greg Lanuke

unread,
Apr 20, 2017, 3:07:06 PM4/20/17
to XMPie Interest Group

Hello everyone,

 

Do you know if it’s possible to add rurl information to a customers web page (residing on their hosting server) for personalised input, and then have the information link back to the uProduce server?

couch

unread,
Apr 25, 2017, 5:57:54 PM4/25/17
to XMPie Interest Group
You can put a web page created with XMPie's 2G "Open XM" technology onto a customer's (non-XMPie) server.

To pass the unique identifier of the recipient, you use a query string - eg http://www.company.com/personalPage.html?rid=Joe.Bloggs

Additionally, you can use cookie to identify the person on subsequent visits or other pages and therefore personalize other pages without needing the query string.

There is more information in the GitHub documentation: https://github.com/XMPieLab/XMPL-SDK/wiki/Corporate-Websites

If you want the customer's server to also use "friendly urls" then there needs to be software installed onto the customer's server to handle the url rewriting.

Greg Lanuke

unread,
Apr 26, 2017, 11:37:18 AM4/26/17
to XMPie Interest Group
Perfect. Thanks Couch!

matt lofthouse

unread,
Feb 5, 2018, 3:39:46 PM2/5/18
to XMPie Interest Group
Hi guys
I have a problem and also lack the understanding to put this rewrite rule in place.

We have a circle 2G custom website setup pointing to a wrodpress website.

I need to only remove these characters from any URL on our website.
?rid=

from this:
https://rpmdigital.co.uk/coffee/?rid=A611F4

to this:
https://rpmdigital.co.uk/coffee/A611F4

Is this done in Helicon on webserver or wordpress htaccess?
if so is it possible to show me the process as i lack experience

Really appreciate some help on this

Kind Regards
Matt

couch

unread,
Feb 5, 2018, 4:09:47 PM2/5/18
to XMPie Interest Group
XMPie uses Helicon ISAPI-rewite to do the friendly URL rewriting on the RURL Wizard or XMPL server.

When you want to put the personalized pages on a different web server, then it is up to you to choose a technology to do the URL rewriting.

If the extra web server is Apache, you can use the mod_rewrite module. If the server is Microsoft, then I believe that IIS had its own URL rewriting module, or you could purchase another ISAPI_rewrite license from Helicon http://www.helicontech.com/isapi_rewrite/ to install on the other server.

The technology to use and the rules or settings necessary for the friendly URL are up to you to decide since the pages are being managed outside of the XMPie environment.

matt lofthouse

unread,
Feb 6, 2018, 4:51:28 AM2/6/18
to XMPie Interest Group
Hi
Thank you for this reply, That really does help me understand.
We use apache and Wordpress.
The code I have in my .htaccess file on our apache server is this.

# 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>

Will I be editing the correct file here?
I am new to mod_rewrite.

Either way thanks for your time

Kind Regards
Matt

BrianS

unread,
Feb 6, 2018, 7:26:00 AM2/6/18
to XMPie Interest Group
Learning Regular Expressions will make you feel like a super hero...

I'm not familiar with Apache rewrite, but one you understand the regex, you'll be able to add what you need to put in there.

On the line:RewriteRule ^index\.php$ - [L]
• The ^ means the start of a string
• The \. Is escaping the . Because . (period) matches any character in regex. You want it to Match just a period.
• The $ means the end of a string

So, the regex ^index\.php$ Matches index.php

Those REWRITE_COND values aren't filled out. Could be /preanutbutter for example.

The rule would replace /index.php with /peanutbutter as the URL.

I like to use regexr.com for testing and learning.

matt lofthouse

unread,
Feb 6, 2018, 10:30:10 AM2/6/18
to XMPie Interest Group
Thank you for the excellent tips,
I have bookmarked regexr.com website so that i can spend to time learn how to use it.

I have tried this following on from your advice:

# BEGIN Custom Rules
RewriteRule ^\?rid=$ $1

# 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

but still no joy of changing
OLD URL:
https://rpmdigital.co.uk/free-coffee/?rid=755162

Into this friendly URL:
https://rpmdigital.co.uk/free-coffee/755162

Kind Regards
Matt

michael engstrom

unread,
Nov 19, 2019, 9:03:18 PM11/19/19
to XMPie Interest Group
Hey Matt,

did you ever get this working?

I'm kinda surprised no one was able to help.

I'm trying to do the same at the moment and it's driving me bonkers

cheers

Michael.

Moritz Kress

unread,
Nov 20, 2019, 2:22:35 AM11/20/19
to XMPie Interest Group
Hi,

not specifically for wordpress, but for other custome hompages the following works for me:

Options +FollowSymlinks
RewriteEngine on

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ http://www.your-domain.com/index.html?rid=$1 [L,QSA,NC]

Regards
Moritz

michael engstrom

unread,
Nov 20, 2019, 5:21:23 PM11/20/19
to XMPie Interest Group
HI Moritz,

Thanks for the reply.

Are you including this in the site root or the folder where the actual landing pages are?

cheers

Michael

michael engstrom

unread,
Nov 20, 2019, 6:09:10 PM11/20/19
to XMPie Interest Group
Just tried this it's the root domain directory if anyone else finds this thread.


Thanks for your help Moritz.
Reply all
Reply to author
Forward
0 new messages