I have set my own OSM server for providing map tiles to use in an application. For the application I use OpenLayers and came to an issue when ported the code from slippymap to my application in order to use…
I have set my own OSM server for providing map tiles to use in an application. For the application I use OpenLayers and came to an issue when ported the code from slippymap to my application in order to use…
Installing Phusion passenger takes two simple steps, but hot always. Especially when you are new to some distro or some conception. You may have some disconfiguration in the system and fixing the dependencies may take a lot of time. That’s…
Many applications use gettext for i18n and l10n. Gettext is PHP extension which holds translation strings in key-value pair. The translation is cached when apache first open the file which is good. However the issue with the cache raises a…
RewriteCond Directive The RewriteCond directive defines a rule condition. One or more RewriteCond can precede RewriteRule directive. The following rule is then only used if both the current state of the URI matches its pattern and if these conditions are…
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase /dir/site_dir RewriteCond %{REQUEST_URI} !^/admin RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -dRewriteRule ^.*$ – [NC,L] RewriteRule ^.*$ /dir/site_dir/index.php [NC,L] </IfModule>
Why I need this There are many reasons for using mod_rewrite. Lets suppose you have site that loads its contents from database and use http://www.kdelchev.com/index.php file for displaying the information. You may pass id to that file like http://www.kdelchev.com/index.php?p=55 which…