ndhaundiyal has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I am having a perl module that detects the device and adds mobile/desktop (e.g., /homepage.html -> /homepage.desktop.html or /homepage.mobile.html)to the url and sends it back to apache to process the same. Now, whenever apache processes the request it shows desktop/mobile in the extension part in the browser which I want to hide. Below is the code snippet that is doing the mentioned task for me.

if ($model_group) { splice @uri_elements, 1, 0, $model_group; my $new_uri = join('.', @uri_elements); debug("New URI: ", $new_uri); $r->uri($new_uri); }

Replies are listed 'Best First'.
Re: Issue with Redirect (apache internal redirect, url hiding, url rewriting)
by Anonymous Monk on Jul 30, 2014 at 07:14 UTC