Note that there are some explanatory texts on larger screens.

plurals
  1. POParsing URLs using PHP
    primarykey
    data
    text
    <p>I have posted a similar question <a href="https://stackoverflow.com/questions/1513311/how-can-i-display-seo-friendly-urls-using-modrewrite">here</a>. However, this was more about getting advice on what to do. Now that I know what to do, I am looking for a little help on how to do it!</p> <p>Basically I have a website that is pretty much 100% dynamic. All the website links are generated using PHP and all the pages are made up of php includes/code. I am trying to improve the SEO of the site by improving the URLs (as stated in the other question) and I am struggling a little.</p> <p>I am using mod_rewrite of rewriting the nice urls to the ugly urls on the server. So what I need is to now convert the ugly urls (which are generated from the php code in the pages) to the nicer urls.</p> <p>Here are the URLs I need to parse (these are in the other question aswell):</p> <pre><code>/index.php?m=ModuleType /index.php?m=ModuleType&amp;categoryID=id /index.php?m=ModuleType&amp;categoryID=id&amp;productID=id /index.php?page=PageType /index.php?page=PageType&amp;detail=yes </code></pre> <p>Here is what I want the above URLs to be parsed to:</p> <pre><code>/ModuleType /ModuleType/CategoryName /ModuleType/CategoryName/ProductName /PageType /PageType/Detail </code></pre> <p>There is an example on the other question posted by <a href="https://stackoverflow.com/questions/1513311/how-can-i-display-seo-friendly-urls-using-modrewrite#1513333">Gumbo</a> however I felt it was a bit messy and unclear on exactly what it was doing.</p> <p>Could someone help me solve this problem?</p> <p>Thanks in advance.</p>
    singulars
    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.
    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