Note that there are some explanatory texts on larger screens.

plurals
  1. POhtacces rewriting for url with ? & id's
    text
    copied!<p>I have a tough situation, in which I need to rewrite a url with "?" &amp; "id" to a seo-friendly url.</p> <p>Here is the actual urls<br/> <a href="http://www.example.com/services.html?sr=1" rel="nofollow">http://www.example.com/services.html?sr=1</a> <br/> <a href="http://www.example.com/services.html?sr=2" rel="nofollow">http://www.example.com/services.html?sr=2</a> <br/> <a href="http://www.example.com/services.html?sr=3" rel="nofollow">http://www.example.com/services.html?sr=3</a> <br/> <a href="http://www.example.com/services.html?sr=4" rel="nofollow">http://www.example.com/services.html?sr=4</a></p> <p>I need to change it to something like this.<br/> <a href="http://www.example.com/services/car-dealers.html" rel="nofollow">http://www.example.com/services/car-dealers.html</a> <br/> <a href="http://www.example.com/services/restaurent.html" rel="nofollow">http://www.example.com/services/restaurent.html</a> <br/> <a href="http://www.example.com/services/nonprofit.html" rel="nofollow">http://www.example.com/services/nonprofit.html</a> <br/> <a href="http://www.example.com/services/school.html" rel="nofollow">http://www.example.com/services/school.html</a></p> <p>My htacces code</p> <pre><code> &lt;IfModule mod_rewrite.c&gt; RewriteEngine On RewriteRule ^services/car-dealers.html services.html?sr=1 [L] RewriteRule ^services/restaurent.html services.html?sr=2 [L] RewriteRule ^services/nonprofit.html services.html?sr=3 [L] RewriteRule ^services/school.html services.html?sr=4 [L] RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] &lt;/IfModule&gt; </code></pre> <p>I'm using WordPress as the CMS. Any possibilities?</p>
 

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