Firefox 3 Download Day Certificate

Web Technology, ,
No Comments »

Firefox 3 Download Day Certificate

I love Mozilla Firefox so much! This browser helps me a lot in developing website faster with add-on applications such as Firebug, Web Developer Tool, Foxmarks, and FireFTP. Well, I’m proud to post my Firefox 3 Download Day certificate. In fact, Mozilla Firefox 3 got more than 8 million downloads in 24 hours and set a new Guinness World Record! So what are you waiting for? Download Firefox 3 now!

With Or Without “WWW”?

Web Technology, , , , ,
No Comments »

Have you encountered losing the values of your session variables using PHP language when “www.” is present on the domain name and if you remove the “www.” you can restore its value again or vise versa? This happens when a session variable was set without “www.” on the domain name, it is impossible for PHP pages to access the session variable if “www.” is present on its domain name or vise versa. So the idea is, we must declare our domain name to be accessed permanently with or without “www.” The technique behind this is called “page redirection”.

Page redirection can be done in several ways. The most common technique is by using the .htaccess file. You must have an FTP access to your account in order for you to do this. You can apply this technique if you’re creating a website by hand or if you’re using a WordPress blog application lower than version 5. Simply log in to your FTP account and create or edit the .htaccess from the root directory. Open the .htaccess with your favorite code editor and insert the following lines below:

RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.domain\.com$ [NC]
RewriteRule ^(.*)$ http://www.domain.com/$1 [L,R=301]

This code will keep the domain name WITH “www.” on it and if you encountered conflicts with your sub domains redirection, you may use the code lines below instead:

RewriteEngine on
RewriteCond %{HTTP_HOST} ^domain\.com$ [NC]
RewriteRule ^(.*)$ http://www.domain.com/$1 [L,R=301]

The “!” and “www\.” on the second line were removed thus leaving the “^” alone before the domain name. But the first option will work for sure - it’s very seldom to have conflicts with your sub domains.

If you want your site to be accessed permanently WITHOUT “www.” on the domain name then use the code lines below:

RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.domain\.com$ [NC]
RewriteRule ^(.*)$ http://domain.com/$1 [L,R=301]

If you are working with a secure site and you want to keep your specific URLs secured, use the code lines below:

RewriteCond %{SERVER_PORT} !^443
RewriteCond %{REQUEST_FILENAME} contact [OR]
RewriteCond %{REQUEST_FILENAME} admin
RewriteRule ^(.*)$ https://www.domain.org/$1 [R=302,L]

For WordPress version 5 and above, redirection can be done without using the .htaccess file. Simply log in to your WordPress Admin page and click Settings. You may add or remove “www.” on the URL fields under General Settings page.

WordPress address (URL) - Admin Page URL
Blog address (URL) - Main Blog’s Site URL

For Drupal users, once you successfully installed the application, a .htaccess is already included on the root directory or what ever directory you used during the installation. Again you may open the .htaccess file and simply follow the instruction found inside it. You may insert also the other .htaccess codes mentioned above that are not included in the .htacess file.

Page redirection using the PHP code alone will be posted soon!

WordPress Image Plugin: Fotobook

Web Technology, , , ,
2 Comments »

Facebook is one of the social network groups that can be found in the internet. The feature I really love on this site is managing the albums and photos. I decided to add photo gallery on my blogsite that is currently powered by WordPress but I need to upload pictures again but those pictures are already uploaded on my Facebook account. Well the nice thing with WordPress is, there are lots of developers who create a plugin to add features to your WordPress site.

On WordPress’ site, there I searched and found Fotobook - a plugin that will link to your Facebook account and import all of your photo albums into a page on your WordPress installation using the Facebook’s API.

I downloaded and uploaded the latest version, v3.0.2, and then activated the plugin. Under Options on my Admin page, after granting and applying the permissions needed, my Facebook’s albums and photos are now linked to my site! Now I need to add another feature to make this plugin works perfectly - Lightbox for photo viewer. Thanks to Aaron Harp for this plugin - he deserves a very good compliment. Check my gallery to see how the plugin works on my site.

WP Theme & Icons by N.Design Studio