<?php if(preg_match('/(?i)msie [1-8]/',$_SERVER['HTTP_USER_AGENT']))
{
// if IE<=8
include ( TEMPLATEPATH . '/noie.php' );
exit;
}
else
{
// if IE>8
} ?>
Category Archives: etc
Active Permalinks on wamp
1. Using a text editor, open your httpd.conf file. In WAMP server, this file can be found in the \apache\conf directory
2. Sift for the following line of code in that file.
#LoadModule rewrite_module modules/mod_rewrite.so
3. Next, remove the # from the line as seen below to enable the module: Just for information, # symbol is actually a comment syntax for httpd.conf. So this should look like this.
LoadModule rewrite_module modules/mod_rewrite.so
4. Then, search for AllowOverride in this httpd.conf file until you come to a line similar of the following:
<Directory />
Options FollowSymLinks
AllowOverride none
Order deny,allow
Deny from all
</Directory>
5. Verify if AllowOverride All is indicated. Change “none” to “all” if found otherwise so this should look like this.
<Directory />
Options FollowSymLinks
AllowOverride All
Order deny,allow
Deny from all
</Directory>
6. Save the httpd.conf file and Restart your wamp server. (Click on the ‘moon’ in the icon tray and select Restart Services)
7. Login to your WordPress admin panel and set your custom permalink structure as desired. Then go view your site. Custom permalinks should now work on your localhost WAMP/XAMPP or other server.