PushLine.com

    Turn Your Traffic into Profit!

 

URL Manipulation



Improve your shop's “Best Rates” page ranking using mode_rewrite option. Mod_rewrite enables you to rewrite long URLs as short and search engine friendly ones. For example:
URL
http://your.shop.com/cards.php?id_country_from=182&id_country_to=53
can be easily transformed into
http://your.shop.com/cards/USA-Continental/182/Germany/53

Such URL manipulation enjoys better Search Engine Indexation of your shop.

Mod_rewrite option is available if your stand-alone shop meets the following requirements:
1. Your shop's hosting provider uses Apa�he Web Server
2. Your Apa�he Web Server enables the use of mod_rewrite
3. You have an access to .htaccess file
Consult your hosting provider on these points.

Once you matched the points above, set rewrite_urls = true in pl_config.php configuration file and delete the "#" comment marks in the beginning of each string in .htaccess file.
The strings in .htaccess file have the following meaning:

<IfModule mod_rewrite.c>means “if mod_rewrite module enabled”
RewriteEngine on“the rewriting engine is “on”
RewriteCond %{REQUEST_FILENAME} !-f“if the requested document is not a file”
RewriteCond %{REQUEST_FILENAME} !-d“if the requested document is not a directory”
RewriteRule ^cards/[^/]*/([^/]*)/[^/]*/([^/]*)$ /cards.php?id_country_from=$1&id_country_to=$2 [NC,QSA,L]“then use the following rule: redirect all incoming requests beginning with “cards” to “cards.php”, taking into consideration only numeric parameters of the countries (see the example above)
</IfModule>

For additional information regarding mod_rewrite module, please go to Apache Help Page
Copyright © 2002 - 2012 Comfi.com Partner Program