• Home page
  • Home blog

JK Blog

weblog

Redirect Old domain to New domain with .htaccess

by JK in November 4th, 2009 
No Comment

Create a .htaccess file with the below code, it will ensure that all your directories and pages of your old domain will get correctly redirected to your new domain.
The .htaccess file needs to be placed in the root directory of your old website (i.e the same directory where your index file is placed)

Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://www.yournewdomain.com/$1 [R=301,L]

Please change www.yournewdomain.com in the above code with your actual domain name.
.htaccess method of redirection works on Linux server with Apache Mod-Rewrite rule enabled.

Topics: PHP/MySQL

Digg it     Delicious it     Stumble it     Favourite it    

Access your server and/or directory with .htaccess

by JK in November 4th, 2009 
No Comment

U can protect your Webserver and/or folder with two easy files:
First one called .htaccess and second one contains password is .htpasswd.

.htaccess file example:
AuthName "My Server"
AuthType Basic
AuthUserFile /Server/www/.htpasswd
Require valid-user

.htpasswd file example:
admin:mypa55
your_logon_name:your_password

These two files should be saved on Webserver root and/or in folder you want to protect.

Topics: PHP/MySQL

Digg it     Delicious it     Stumble it     Favourite it    

Magento Error: on Windows servers – wamp, server2go,..

by JK in August 24th, 2009 
No Comment

Here are some of the common problems encounters when you tried to install Magento on server running on Windows machine.


The requested URL /install/ was not found on this server.
500 Internal server error.
PHP Extension “mcrypt” must be loaded.
PHP Extension “curl” must be loaded.

1. Go to your httpd.conf file located at your Apache installation directory (e.g.: C:/Apache/Apache/conf)
2. Open file httpd.conf (Notepad, notepad ++, notepad 2)
2. Rename text AccessFileName .htaccess to htaccess.txt
/install/ was not found

3. Change AllowOverride to “All”
allowOverride

4. Add the following between < IfModule mod_alias.c > and < / IfModule >. Please make sure your path “C:/Apache/Apache/htdocs/magento/” is point to your Magento installation directory
IfModule mod_alias.c

5. Uncomment LoadModule for rewrite_module
LoadModule

6. Uncomment AddModule for rewrite_module.c
AddModule

7. Uncomment the following extensions
extensions

8. Save httpd.conf

9. Go to your Magento installation dir and rename file .htaccess to htaccess.txt
10. Write content below and overwrite file htaccess.txt
htaccess

11. Copy libmcrypt.dll, libeay32.dll, ssleay32.dll and libmysql.dll from PHP root directory (e.g.: C:/PHP) to C:/WINDOWS/SYSTEM32/

4. Run Magento
5. Enjoy! and let me know. THX!

Topics: Magento store
Tags: 500 internal error, curl, install, mcrypt
Digg it     Delicious it     Stumble it     Favourite it    

Best image effect on web page

by JK in August 7th, 2009 
No Comment

The very best and simple, unobtrusive script used to overlay images on the current page. It’s a snap to setup and works on all modern browsers.
http://www.huddletogether.com/projects/lightbox/

Lytebox was written from the Lightbox class that Lokesh Dhakar (http://www.huddletogether.com) originally wrote. The purpose was to write a self-contained object that eliminated the dependency of prototype.js, effects.js, and scriptaculous.js. Since the original version of Lytebox (which released with iFrame support), major modifications have been made to improve performance as well as “Slideshow” support, “Themes” support, HTML content support (as opposed to just images) and many more configurable options that allow you to customize the look and feel of Lytebox.

http://www.dolem.com/lytebox/

Topics: Javascript

Digg it     Delicious it     Stumble it     Favourite it    

Free Apache Server on USB key

by JK in August 7th, 2009 
No Comment

Server2Go has everything you need to get your Web application running

* Apache 1.3.x, 2.0.x and 2.2.x (V1.6.0 of Server2Go or above)
* PHP 5.2.x with a lot of Extensions. Downgrade packages to 4.4.x and 5.0.x available)
* MySQL 5 support
* Perl 5.8 with many CPAN modules integrated\\

Self-Configuration
Server2Go is self-adaptable to the user’s environment:

* Autodetect free ports for Apache and MySQL
* Autodetection of proxy settings
* Server2Go takes care of the correct configuration of Apache, PHP and MySQL depending on the environment

http://www.server2go-web.de/

Topics: PHP/MySQL

Digg it     Delicious it     Stumble it     Favourite it    

Free XML sitemap generator

by JK in August 7th, 2009 
No Comment

1. You need to have Java installed on your PC
2. This tool respects sessions, so make sure you are LOGGED OUT of your website BEFORE generating a XML SITEMAP!
3. Go to http://www.auditmypc.com/xml-sitemap.asp
4. Add URL of your page and wait for end of process
5. Save your sitemap as XML and/or TXT
6. Upload to your Web Server
7. Let Google, Yahoo,.. know that you have it.
Enjoy!

Topics: SEO pages

Digg it     Delicious it     Stumble it     Favourite it    

Free mod_rewrite RewriteRule Generator

by JK in August 7th, 2009 
No Comment

Look here:
Is it very easy to use:

http://www.webmaster-toolkit.com/mod_rewrite-rewriterule-generator.shtml

just paste dynamic url and click on generate. You can also choose from 2 styles of rewriting.

Enjoy!

Topics: SEO pages

Digg it     Delicious it     Stumble it     Favourite it    

Free Lynx Preview of your page

by JK in August 7th, 2009 
No Comment

Just go to the
http://crschmidt.net/services/lynx/
and add your page at the end of the address
e.g.: http://crschmidt.net/services/lynx/jksite.com

enjoy!

Topics: SEO pages

Digg it     Delicious it     Stumble it     Favourite it    

Searching for free hosting to run Magento

by JK in July 19th, 2009 
3 Comments

Hi Everybody,
I’m searching for free hosting where I can run and test Magento store.
If somebody found some, please let me know. I was searching for some over the internet, but the main problem is with extensions on server.
Magento System Requirements:
o Required extensions:
+ PDO_MySQL
+ simplexml
+ mcrypt
+ hash
+ GD
+ DOM
+ iconv
+ SOAP (if Webservices API is to be used)
o Safe_mode off
o Memory_limit 32M or more
* MySQL:
o 4.1.20 or newer
o InnoDB storage engine
* SSL:
o If HTTPS is used to work in the admin, SSL certificate should be valid. Self-signed SSL certificates are not supported
* Server – hosting – setup:
o Ability to run scheduled jobs (crontab) with PHP 5
o Ability to override options in .htaccess files
Many thanks!

Topics: Magento store

Digg it     Delicious it     Stumble it     Favourite it    

Magento Commerce – Layered Navigation Fix on Cache Error

by JK in July 5th, 2009 
40 Comments

Hi, my friend asked my to repair his shop because he got problems with his layered navigation in Magento store.
I was searching over the internet and I found one FIX created by Chris McKee.
His script was perfect but some automatic functions were missing, therefore I’ve created this script.
All you need to do is written down, follow my steps to create the layered navigation cache for Magento automatically:

1. go to Magento administration
2. click on the System -> Cache Management
3. scroll down to the Catalog and click on Rebuild Flat Catalog Category and Rebuild Flat Catalog Product –> “Rebuild” buttons.
4. download file magento-lay-nav-cache.zip (4.88kb)
5. unpack it
6. open cache.php with notepad
(notepad2/notepad++)
7. find line 19 and set up your data – connection to your database
$dbhost = ‘localhost’; //database address
$dbuser = ‘user_db’; //name of the user
$dbpass = ‘password’; //password to database
$dbname = ‘database’; //database name
8. upload files to your WEB server
9. run cache.php
( e.g.: www.myshop.com/magento/cache.php)
10. follow the steps on screen
11. at the first – “Delete whole cache”
12. then select your shop from drop down menu and click “Start”
13. if you have troubles with caching, change number of products caching on one page – go to line 39 in cache2.php and change the value $hm = 20; – 20 products per page
14. after all… delete or rename all 3 files!! (somebody could delete your shop items!!)
15. If you want to see all errors – but you don’t need to – go to the cache.php line 17 and comment it
16. let me know the results or proposals ! and enjoy!

Topics: Magento store
Tags: cache, Magento store, navigation
Digg it     Delicious it     Stumble it     Favourite it    
feeds

Search

Categories

  • PHP/MySQL
  • Magento store
  • SEO pages
  • Javascript

Latest Comments

  • JK » Magento Commerce - Layered Navigation Fix on Cache…
  • JK » Magento Commerce - Layered Navigation Fix on Cache…
  • guillermo » Magento Commerce - Layered Navigation Fix on Cache…
  • freemode » Magento Commerce - Layered Navigation Fix on Cache…
  • Xeon_2901 » Magento Commerce - Layered Navigation Fix on Cache…
  • mario » Magento Commerce - Layered Navigation Fix on Cache…

Monthly Archives

  • November 2009
  • August 2009
  • July 2009

Daily Archives

  • 04/11/2009
  • 24/08/2009
  • 07/08/2009
  • 19/07/2009
  • 05/07/2009

Recent Entries

  • Redirect Old domain to New domain with .htaccess
  • Access your server and/or directory with .htaccess
  • Magento Error: on Windows servers – wamp, server2go,..
  • Best image effect on web page
  • Free Apache Server on USB key
  • Free XML sitemap generator
  • Free mod_rewrite RewriteRule Generator
  • Free Lynx Preview of your page
  • Searching for free hosting to run Magento
  • Magento Commerce – Layered Navigation Fix on Cache Error

Recent Comments

  • JK » Magento Commerce - Layered Navigation Fix on Cache…
  • JK » Magento Commerce - Layered Navigation Fix on Cache…
  • guillermo » Magento Commerce - Layered Navigation Fix on Cache…
  • freemode » Magento Commerce - Layered Navigation Fix on Cache…
  • Xeon_2901 » Magento Commerce - Layered Navigation Fix on Cache…
  • mario » Magento Commerce - Layered Navigation Fix on Cache…
  • JK » Magento Commerce - Layered Navigation Fix on Cache…
  • Julec » Magento Commerce - Layered Navigation Fix on Cache…
  • craigcriv » Magento Commerce - Layered Navigation Fix on Cache…
  • JK » Magento Commerce - Layered Navigation Fix on Cache…

Hottest Entries

  • Magento Commerce - Layered Navigation Fix on Cache Error (40)
  • Searching for free hosting to run Magento (3)
©2010 JK Blog

Valid XHTML and Valid CSS