Minden Real Estate

Business Updates for the Real Estate Industry

Create CNC manintelligible URLs

The ‘url’ is the universal resource address. it also links to resources. Human-understandable URLs – links that are not that look confusing jumble of question marks and ampersands (& icon) and transmitted them parameters (such as this – view_bill.php? id_bill = 11 – and that’s not the worst option), as well as links to static html-pages – for example bill_11.htm. In addition, they perceived a much easier person, such references are seen more likely to search System (the opinion incidentally, quite controversial – but most are inclined to it), which leads to better indexing these pages – and finding better sootvetvenno site users. That ultimately we want. What would work out techniques to create machines with Smarty – you can download a demo version of the scripting sale of real estate – it has already connected Smarty, there is a test ad and completely preserved work with templates.

All examples below are for templates is that the demo version. To create these same machines in any of the scripts ispolzuyuuschem template Smarty (in particular, one of my finished scripts), we need: – a module for Apache mod_rewrite (usually already installed on server, if you are unsure – ask your hosting provider) – a file. htaccess (and usually on a paid hosting is available for use) – the template files directly responsible in the script for the withdrawal of links that we should change. Proceed to ‘cook’. 1.

Create a file. Htaccess – if you already have, then just open it and add new lines – for example at the end. File must be located in the Stem script, for which we ‘prepare’ our machines. 2. It prescribes the rules for change – as it should modify the server URLs – as a matter of fact, changing links, does not affect the operation of scripts – but they still must obtain the expected parameters of a link. Means necessary, that would server ‘translated’ those ‘clear’ links, which we do – in the form of ‘incomprehensible’ man, but understandable script. This is the purpose of Apache module mod_rewrite. Example entry in the file. Htaccess, which sets rules for the replacement options form bill_22.htm (22 – random number, dependent on a particular ad, it is his id number) to clear the script link view_bill.php? id = 22. RewriteEngine On RewriteRule bill_ (.*). htm $ view_bill.php? Id = textarea More information about the commands used in the file: RewriteEngine On – a marker for the inclusion of rules modifications ‘urls’ RewriteRule bill_ (.*). htm $ view_bill.php? id = textarea A a rule that converts references of the form bill_12.htm in clear view for a script view_bill.php? id = 12 characters> – marks the beginning of the string, and the $ character – her late sign textarea – is the symbol – in this case the unique number of ads that obtained by processing links – and he is captured by the expression (.*) in our search bar and replace it. Next – the site you want to organize the creation of these very understandable URLs (of the form bill_12.htm). This is done in a template – for a script like this real estate template.