Jump to content

Change character or wording within a url


charl9cfc

Recommended Posts

Hi All



Am trying to mod_rewrite a URL, but unfortunately without any luck.

http://mywebsite.com/gallery/mycustom-gallery/linkid417

Should be changed to:

http://mywebsite.com/gallery/mycustom-gallery/#417

Where '417' is a dynamic id of an image & mycustom-gallery will also change every-time.

I've tried the following rules, but none seems to work...

RewriteRule ^/gallery/$1/#([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/y/([0-9]+)$ /gallery/$1/linkid [L,R=301]
RewriteRule mycustom-gallery/#.*$ /mycustom-gallery/linkid=417/$1

Regards,
Charl

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.