
SEO friendly Urls give you a better ranking. They look nicer, they are shorter and easier to write.
The SEO friendly URL does not exist in your domain, so you have to redirect all URLs to your index.php. In the index.php you build your parameters out of your slashes separated url.
Attention
All resources in your website need to have an absolute path!
A datadefID can not have the same name like one of your main folders.
If a resource is not available, your website is reloaded!
Adoptions
.htaccess in main directory
.htaccess allows to define rewrite rules. The rewrite rule is defined for the folder, where the .htaccess is in.
.htaccess in sub directory: webkitb5
The rewrite rule is defined for the sub folder 'webkitb5'. For every file, which does not exist, the file index.php in the folder webkitb5 is called.
masterdata/_init.php:
part of _init.php
This are necessary settings:
- domain_urlmode=1
- Standard
- SEO friendly URLs
- domain_countsubs=0
by installation to 1 or more sub folders the number of subfolders has to be filled out.
Rules for SEO friendly Urls
Seo friendly Url | comment |
---|---|
/<datadefID> | page=catalog&datadefID=<datadefID> |
/<datadefID>/<displayvalue> | page=detail&datadefID=<datadefID>&displayvalue=<displayvalue> |
/p/doc_masterdata | page=doc_masterdata |
/e/<element>/<datadefID> | page=<element>&datadefID=<datadefID> |
/e/<element>/<datadefID>/<displayvalue> | page=<element>&datadefID=<datadefID> &displayvalue=/<displayvalue> |
The default output for a datadefID is the catalog. A detail page is emitted by datadefID and displayvalue. The displaycolumn is defined in the data definition. The displayvalue specifies the desired record.
With the "p" parameter the internal page from the pages array is printed out.
With the "e" parameter an element (page) is requested. It is followed by the desired datadefID
Restrictions
Plugin catalog
The query string is still used:
- search expression
- search form
- pagination
Plugin masterdata
Filter expressions are not displayed in the query string. By using the list features the 'edit' and 'new' link still contains the query parameters with key value pairs.