Showing posts with label Web Development. Show all posts
Showing posts with label Web Development. Show all posts

Monday, May 23, 2016

URL redirect/rewrite using the .htaccess file on Linux Servers. (redirect non-www-address to the www-address)



By default your website can be accessed with both www.example.com and example.com. Allowing both can confuse search engines, in fact, Google penalizes this (duplicated content).
You should restrict the access to either www.example.com or example.com. Some search engines may have already indexed your website under both addresses.

If you run your web-site on a Linux server, you can force this restricted behavior simply by adding the following code to your ".htaccess" file in the public_html folder of your web-ste.




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

Sunday, September 29, 2013

Iframes in Google Sites are not displayed in Firefox.


Google sites are running in SSL-encrypted mode (https://)

If you are trying to add an http-Iframe on a SSL-encrypted website (https://), it won't work any more since Firefox 23 because Mozilla has decided to blocked all unencrypted content on encrypted website.

You can change this behaviour in your own Firefox installation by changing the settings in your Firefox browser.

  • Type in the address bar: 
about:config
  • Browse to the following line:
    security.mixed_content.block_active_content
  • By default this setting is set to true. Toggle this setting to:
    false
  • Close the settings tab

Now your http-Iframes should work in your SSL-Encrypted web-site.

Thursday, March 29, 2012

Joomla Editors (tiny, jce,. ...) NOT saving text formatting !!

After updating or upgrading your Joomla version with the latest security update, might cause your editor to not save your formatting.The default settings for your articles might have been changed with the uptdate.
To fix this issue:


Friday, June 18, 2010

Having to Login twice in the Joomla Admin pages.

On a few of our site-Developments, we experienced the issue, where you need to log-in Twice to get in the Joomla back-end.
No big deal right? But it still is a sign that something is wrong and needs to be fixed.
What we found is: A conflict between the .htaccess settings and the variable settings in the configuration.php caused this behaviour.
Often when going through the configuration settings in Joomla, the site variable is set to the domain name only, without the "www" prefix. Although everything seems to work on the front end without issues, it will cause issues in the back-end.

Monday, March 1, 2010

Joomla 1.5: Can't login to back-end with Forced SSL for Back-end

When setting the Back-end to force use SSL, it will do that, but won't let you log in.
You will go in an endless login cycle.
To solve this you will need to dig in the code and change a few lines.
(Credit to original poster: John-Paul Takats)

Change  the file  ../libraries/joomla/environment/uri.php

Wednesday, January 6, 2010

Joomla 1.5: Reset Administrator Password

Originally posted by kenmcd (aka Joomla Hero) @ Joomla forums  on Fri Oct 07, 2005 3:07 pm
Thanks and all credits to the Original Poster.
 
In Joomla, the passwords are stored using a one-way MD5 hash which prevents recovering the password.
But you can reset the password by editing the password field in the database.
Set the password to a known value and then you may log-in using that new password.

The password is stored in the MySQL database jos_users  table password  field. (change this for your table prefix if different)
Use a MySQL utility such as phpMyAdmin or MySQL Query Browser to edit this field.
Open the table, find your admin username, and then select that row for editing.
The password must be hashed, you cannot simply enter text into this field.
You have 2 options to go by it:

Monday, December 28, 2009

Joomla 1.5 - Rocket Theme: Moxy - Contact Us Text Colour

When you use the Rocket Theme Moxy for Joomla 1.5x with the Dark colour selection, (not free template) you will find that the message box in the Contact-us forms, is black on Dark grey, and therefore, hard to read. To change that you will have to adjust the CSS file "body-dark.css"

Sunday, October 25, 2009

JWPlayer - swfobject and IE 7

Embedding Flash players in you website, is easy with the JWPLAYER module.

Jwplayer, (stand alone code as well as Joomla module) relies on swfobject.js. Although everything works fine with all browsers and O/S's, it seems to act up with IE7. For most no surprise of course, but since the majority of computers run on Windows, and use IE, we have to fix this.

The first time load seems to work, but a reload causes issues with the following Error:

Internet explorer cannot open the internet site http://www.your_domain.com/...
Operation aborted