Note that there are some explanatory texts on larger screens.

plurals
  1. POmod rewrite to remove facebook query string
    primarykey
    data
    text
    <p>I can't get my query string to work..please help... I have the following url: <a href="http://betatest.bracknell-forest.gov.uk/help?fb_action_ids=372043216205703&amp;fb_action_types=og.likes&amp;fb_source=aggregation&amp;fb_aggregation_id=288381481237582" rel="nofollow">http://betatest.bracknell-forest.gov.uk/help?fb_action_ids=372043216205703&amp;fb_action_types=og.likes&amp;fb_source=aggregation&amp;fb_aggregation_id=288381481237582</a> </p> <p>(sorry but the page will be unavailable as it is a test internal domain link)</p> <p>I want the following url: <a href="http://betatest.bracknell-forest.gov.uk/help" rel="nofollow">http://betatest.bracknell-forest.gov.uk/help</a></p> <p>I get a browser message saying 'The system cannot find the file specified.' I know it is because I already have a mod rewrite to remove the .htm from the page name to return clean urls but I don't know what I need to do to accept a clean url and return the page.<br> Here is the mod rewrite code I have:</p> <pre><code>RewriteRule ^/([\w]+)$ /$1.htm [I,L] #Any bare URL will get rewritten to a URL with .htm appended RedirectRule ^/(.+)\.(htm)$ http://betatest.bracknell-forest.gov.uk/$1 [R=301] RewriteCond %{QUERY_STRING} ^fb_action_ids=(.)$ #if the query string contains fb_action_ids RewriteCond %{QUERY_STRING} !="" #if there is a query string RewriteRule ^(.*) $1? [R=301,L] </code></pre> <p>I think it is because I am using R=301 twice but do not know what I need to use as an alternative.</p> <p>If I append .htm from help?fb_action_ids.... to help.htm?fb_action_ids.... this returns the required page fine but I need to return the page name for the non appended url.</p> <p>Many thanks for any help in advance. </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload