Post by Mihov » Fri Jan 26, 2018 12:47 am

Hi, I have little problem. All my products have seo url, login, wish list and eg too. But all my categories haven't got friendly urls.
For example:

Code: Select all

http://istore-bg.com/-krusell-luna-pouch-l-nubuck-kozhn-kalaf-za-iphone-4-4s-htc-sony-samsung-nokia-i-mobilni-tlfoni-kafyav-p18521
- Product have

Code: Select all

http://istore-bg.com/index.php?route=product/category&path=667_1015
category have't

Don't know where is the problem, guess somewhere in htaccess. Hope someone can help. :)

Newbie

Posts

Joined
Wed Aug 28, 2013 8:46 pm

Post by Mihov » Fri Jan 26, 2018 12:50 am

Code: Select all

<IfModule mod_fcgid.c>
AddHandler fcgid-script .php
FcgidWrapper /home/ismartbg/public_html/istore-bg.com/www/php.fcgi .php
</IfModule>

#<IfModule mod_suphp.c>
#    AddHandler x-httpd-php55 .php
#</IfModule>
# 1.To use URL Alias you need to be running apache with mod_rewrite enabled.

# 2. In your opencart directory rename htaccess.txt to .htaccess.

# For any support issues please visit: http://www.opencart.com

Options +FollowSymlinks

# Prevent Directoy listing
Options -Indexes

# Prevent Direct Access to files
<FilesMatch "(?i)((\.tpl|\.ini|\.log|(?<!robots)\.txt))">
 Order deny,allow
 Deny from all
</FilesMatch>

# SEO URL Settings
RewriteEngine On
# If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/

#RewriteBase /

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

RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L]
RewriteRule ^system/download/(.*) index.php?route=error/not_found [L]
RewriteRule ^s-(.*)$ index.php?route=product/search&search=$1 [L,QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]

### Additional Settings that may need to be enabled for some servers
### Uncomment the commands by removing the # sign in front of it.
### If you get an "Internal Server Error 500" after enabling any of the following settings, restore the # as this means your host doesn't allow that.

# 1. If your cart only allows you to add one item at a time, it is possible register_globals is on. This may work to disable it:
# php_flag register_globals off

# 2. If your cart has magic quotes enabled, This may work to disable it:
# php_flag magic_quotes_gpc Off

# 3. Set max upload file size. Most hosts will limit this and not allow it to be overridden but you can try
# php_value upload_max_filesize 999M

# 4. set max post size. uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
# php_value post_max_size 999M

# 5. set max time script can take. uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
# php_value max_execution_time 200

# 6. set max time for input to be recieved. Uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
# php_value max_input_time 200

# 7. disable open_basedir limitations
# php_admin_value open_basedir none

Newbie

Posts

Joined
Wed Aug 28, 2013 8:46 pm

Post by Mihov » Thu Feb 01, 2018 2:07 am

Someone ;(

Newbie

Posts

Joined
Wed Aug 28, 2013 8:46 pm

Post by MrPhil » Thu Feb 01, 2018 7:41 am

For some reason your OC code is not producing SEF URLs for categories. It's not in .htaccess -- that just decodes SEF entries into something that OC can make use of. There must be something messed up in your configuration or even in your PHP code. What do you have for the version, and what extensions, etc. are installed?

User avatar
Active Member

Posts

Joined
Wed May 10, 2017 11:52 pm

Post by Mihov » Thu Feb 01, 2018 5:31 pm

Thank you,

I use opencart 2.2.0.0 with journal thame 2.7.6. I didn't touch php files. I attacked you what extensions and moduls use.

Regards

Attachments

oc1.jpg

extensions - oc1.jpg (75.47 KiB) Viewed 1764 times

oc2.jpg

SEO Product Tags Bulk Generator - oc2.jpg (82.46 KiB) Viewed 1764 times

moduls1.jpg

Moduls, I use this with dot - moduls1.jpg (56.44 KiB) Viewed 1764 times


Newbie

Posts

Joined
Wed Aug 28, 2013 8:46 pm
Who is online

Users browsing this forum: No registered users and 42 guests