Tuesday, January 12, 2016

Solve SEO URLs Not Working in OpenCart

How To Solve SEO URLs Not Working in OpenCart

If you’re facing a problem with SEO friendly URLs in OpenCart (experienced with version 1.4.9.1), where all your site’s category or product links redirect you back to your home page, then here’s a solution that may solve your problem.
How To Solve SEO URLs Not Working in OpenCart

Step 1: Enable SEO URLs in OpenCart

Go to System » Server » Use SEO URL’s

Step 2: Rename your .htaccess.txt file to .htaccess by removing the .txt file extension

Use your online file manager, such as the one found in cPanel, or use any FTP software to connect to your site. Vodien provides web hosting plans that provide cPanel, so doing this is really easy. In your OpenCart folder, you should find a file named .htaccess.txt. Rename this file so that it becomes.htaccess.
If you need the htaccess file again, here it is:
OpenCart 1.5.1 htaccess.txt

Step 3: Fill in the SEO Keyword for all the Categories and Products.

Go to Catalog » Products » Data » Seo Keyword. Do take note of the following:
  1. SEO Keyword is unique, and no duplicates are allowed.
  2. There should be no spaces in your SEO Keyword. You should use an underscore or hyphen between each word.
That’s it! Refresh your OpenCart shopping cart website, and you should you the SEO urls working properly.
Update: If OpenCart is installed in a subfolder, e.g. http://www.yourdomain.com/opencart/, you’ll need to modify the .htaccess file located in your OpenCart folder.
Edit the .htaccess file, and look for the following code section, starting from line 18:
# SEO URL Settings
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)\?*$ index.php?_route_=$1 [L,QSA]
You’ll need to edit line 20, which is:
RewriteBase /
to
RewriteBase /opencart/
After editing, your code should look like this:
# SEO URL Settings
RewriteEngine On
RewriteBase /opencart/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)\?*$ index.php?_route_=$1 [L,QSA]
Done!

Saturday, January 9, 2016

Administrator index.php not writeable error while installing vqmod

when you go to localhost/vqmod/install its  coming up with 'Administrator index.php not writable' ?

Here is the solution for that problem 

Go to vqmod folder of your shop or website . 

Incase of mine 

C:\xampp\htdocs\shop\vqmod

Get inside the 

C:\xampp\htdocs\shop\vqmod\install

and then open the index.php file with an text editor like notepad .

 Then
Running OpenCart on Win7 with WAMP or Xampp
I had similar issue of 'Administrator index.php not writable'
I had earlier changed the admin folder to something else let say 'newAdmin'
After I changed the code below in vqmod/install/index.php it worked.
$admin = 'newAdmin';


Please comment if you have any problems .