• Hi guys
    I have a problem and also lack the understanding to put this rewrite rule in place.
    I only need to 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

    The first section is created by wordpress /coffee/
    and last part is created by an Xmpie system ?rid=A611F4
    the 6 digit number is dynamic and specific to making the webpage personalised to them.
    I have been told by Xmpie support that this can be done in the wordpress .hatches

    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>

    is it possible to show me the process as i lack experience

    Really appreciate some help on this

    Kind Regards
    Matt

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Something like this should do it.
    https://www.generateit.net/mod-rewrite/index.php

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^coffee/([^/]*)$ /coffee/?rid=$1 [L]
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
Viewing 1 replies (of 1 total)
  • The topic ‘Rewrite URL in htaccess to hide certain characters’ is closed to new replies.