Several pages won't show up with SEO links enabled in Opencart

Mem Faction

Whenever I enable SEO in Opencart settings, all pages, articles etc. who have SEO links gets redirected to public_html/index.php (Opencart is installed in public_html/shop/ folder).

Here is .htaaccess from root public_html folder:

Options -Indexes
Options +FollowSymLinks
Options -MultiViews
RewriteEngine On
RewriteBase /
RewriteRule ^teksti/([^./]+)([/]?)$ teksti.php?niceid=$1 [T=application/x-httpd-php,L]
RewriteRule ^clanki/([^./]+)([/]?)$ clankistran.php?niceid=$1 [T=application/x-httpd-php,L]
RewriteCond %{HTTP_HOST} .*www.domain.com
RewriteRule ^$ sportna_prehrana.php [T=application/x-httpd-php,L]

RewriteRule ^stran.php$ sportna_prehrana.php%{QUERY_STRING} [T=application/x-httpd-php,L,R=301]
RewriteRule ^cart.php$ nakup.php%{QUERY_STRING} [T=application/x-httpd-php,L,R=301]

RewriteRule ^xfit/$ xfit/xfit.php
RewriteRule ^forum/$ forum/index.php

#Redirect permanent page_wellness.php xfit/

#RewriteRule ^internet.html$ internet.php?%{QUERY_STRING} [T=application/x-httpd-php,L]
#RewriteRule ^programska_oprema.html$ programska_oprema.php?%{QUERY_STRING} [T=application/x-httpd-php,L]
#RewriteRule ^storitve.html$ teksti.php?act=storitve&%{QUERY_STRING} [T=application/x-httpd-php,L]
#RewriteRule ^podjetje.html$ teksti.php?act=opodjetju&%{QUERY_STRING} [T=application/x-httpd-php,L]
#RewriteRule ^pogoji.html$ teksti.php?act=pogoji&%{QUERY_STRING} [T=application/x-httpd-php,L]
#RewriteRule ^privatnost.html$ teksti.php?act=privatnost&%{QUERY_STRING} [T=application/x-httpd-php,L]
#RewriteRule ^stran.html$ stran.php?aktualno=1&%{QUERY_STRING} [T=application/x-httpd-php,L]
#RewriteRule ^podjetje/([^./]+).html$ stran.php?nicepod=$1&%{QUERY_STRING} [T=application/x-httpd-php,L]
#RewriteRule ^([^./]+).html$ stran.php?nicecat0=$1&%{QUERY_STRING} [T=application/x-httpd-php,L]
#RewriteRule ^([^./]+)/a/([^./]+).html$ stran.php?nicecat0=$1&niceart=$2&%{QUERY_STRING} [T=application/x-httpd-php,L]
#RewriteRule ^([^./]+)/([^./]+).html$ stran.php?nicecat0=$1&nicecat1=$2&%{QUERY_STRING} [T=application/x-httpd-php,L]
#RewriteRule ^([^./]+)/([^./]+)/a/([^./]+).html$ stran.php?nicecat0=$1&nicecat1=$2&niceart=$3&%{QUERY_STRING} [T=application/x-httpd-php,L]
#RewriteRule ^([^./]+)/([^./]+)/([^./]+).html$ stran.php?nicecat0=$1&nicecat1=$2&nicecat2=$3&%{QUERY_STRING} [T=application/x-httpd-php,L]
#RewriteRule ^([^./]+)/([^./]+)/([^./]+)/a/([^./]+).html$ stran.php?nicecat0=$1&nicecat1=$2&nicecat2=$3&niceart=$4&%{QUERY_STRING} [T=application/x-httpd-php,L]
ErrorDocument 404 /404.php
#DirectoryIndex page_wellness.php
#DirectoryIndex sportna_prehrana.phpRewriteCond %{HTTP_HOST} ^xy.com$ [OR]
DirectoryIndex vstop.php

RewriteCond %{HTTP_HOST} ^.*$
RewriteRule ^page_wellness.php$ "http\:\/\/www\.xy\.com\/xfit\/" [R=301,L]

RewriteCond %{HTTP_HOST} ^.*$
RewriteRule ^page_wellness.php/$ "http\:\/\/www\.xy\.com\/xfit\/" [R=301,L]

RewriteCond %{HTTP_HOST} ^.*$
RewriteRule ^xfit/urednik/$ "http\:\/\/www\.xy\.com\/xfit\/urednik\/index\.php" [R=301,L]

RewriteCond %{HTTP_HOST} ^.*$
RewriteRule ^xfit/podstrani/$ "http\:\/\/www\.xy\.com\/xfit\/podstrani\/index\.php" [R=301,L]

RewriteCond %{HTTP_HOST} ^.*$
RewriteRule ^kontakti/$ "http\:\/\/www\.xy\.com\/kontakti\/index\.php" [R=301,L]

RewriteCond %{HTTP_HOST} ^.*$
RewriteRule ^sportno_drustvo\.php$ "http\:\/\/www\.xy\.com\/sdx\/" [R=301,L]

Here is .htaccess from Opencart (public_html/shop/) folder:

# 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 "\.(tpl|ini|log)">
 Order deny,allow
 Deny from all
</FilesMatch>

# SEO URL Settings
RewriteEngine On
DirectoryIndex index.php index.html site-down.php install.php
# If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/ 
RewriteBase /
RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L]
RewriteRule ^download/(.*) /index.php?route=error/not_found [L]
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

As you can see, I inserted DirectoryIndex index.php index.html site-down.php install.php into Opencart's .htaccess because otherwise I got 403 error whenever I tried to visit my front-end unless I typed exactly /shop/index.php into URL.

Could anyone please help me out with this?

Sankar V

Change

RewriteBase /

to

RewriteBase /shop/

Have a nice day!

이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.

침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사

분류에서Dev

Why Won't the BG Colors Show Up?

분류에서Dev

Why won't my Android SDK Manager show up when invoked from Eclipse?

분류에서Dev

How do I debug an error on Heroku that won't show up in dev or production mode locally?

분류에서Dev

Grub menu won't show up after updating Ubuntu, can boot only into Windows

분류에서Dev

wifi list won't show and even ethernet won't show

분류에서Dev

The hover for my buttons and links won’t work

분류에서Dev

QSystemTrayIcon doesn't always show up

분류에서Dev

boot menu shows up but Ubuntu won't work

분류에서Dev

Canopy 1.6.2 installation on OSX 10.9.5 - crashes -> won't start up

분류에서Dev

Canopy 1.6.2 installation on OSX 10.9.5 - crashes -> won't start up

분류에서Dev

Use a socket on several pages

분류에서Dev

Mysql won't show my databases (MYSQL-WIN7)

분류에서Dev

Symfony won't show the form submission errors when the template changed

분류에서Dev

Javascript calendar won't show current day+month

분류에서Dev

UIPickerView won't show the data loaded from NSUserDefaults

분류에서Dev

Radio and Checkbox Checked Values Won't Show in JavaScript

분류에서Dev

Django ListView pages and links

분류에서Dev

Login Pop Up button pops up automatically and won't go directly to login form

분류에서Dev

Data appears when printed but doesn't show up in dataframe

분류에서Dev

Low battery notification doesn't show up in windows 7

분류에서Dev

Porto Template:Google map doesn't show up

분류에서Dev

Malihu jQuery Custom Scrollbar with Meteor doesn't show up

분류에서Dev

Android TodoApp with ListView - list don't show up

분류에서Dev

Deadbeef doesn't show up in sound applet of Cinnamon

분류에서Dev

Lenovo IdeaPad Flex 2 won’t start up Windows directly from Intel 335 SSD

분류에서Dev

unexpected T_VARIABLE on opencart?

분류에서Dev

Text won't write to page but will show in alert() message. JavaScript and HTML

분류에서Dev

android studio won't show device when trying to run app (on Mac)

분류에서Dev

AngularJS animation won't stop immediately when ng-show is false

Related 관련 기사

  1. 1

    Why Won't the BG Colors Show Up?

  2. 2

    Why won't my Android SDK Manager show up when invoked from Eclipse?

  3. 3

    How do I debug an error on Heroku that won't show up in dev or production mode locally?

  4. 4

    Grub menu won't show up after updating Ubuntu, can boot only into Windows

  5. 5

    wifi list won't show and even ethernet won't show

  6. 6

    The hover for my buttons and links won’t work

  7. 7

    QSystemTrayIcon doesn't always show up

  8. 8

    boot menu shows up but Ubuntu won't work

  9. 9

    Canopy 1.6.2 installation on OSX 10.9.5 - crashes -> won't start up

  10. 10

    Canopy 1.6.2 installation on OSX 10.9.5 - crashes -> won't start up

  11. 11

    Use a socket on several pages

  12. 12

    Mysql won't show my databases (MYSQL-WIN7)

  13. 13

    Symfony won't show the form submission errors when the template changed

  14. 14

    Javascript calendar won't show current day+month

  15. 15

    UIPickerView won't show the data loaded from NSUserDefaults

  16. 16

    Radio and Checkbox Checked Values Won't Show in JavaScript

  17. 17

    Django ListView pages and links

  18. 18

    Login Pop Up button pops up automatically and won't go directly to login form

  19. 19

    Data appears when printed but doesn't show up in dataframe

  20. 20

    Low battery notification doesn't show up in windows 7

  21. 21

    Porto Template:Google map doesn't show up

  22. 22

    Malihu jQuery Custom Scrollbar with Meteor doesn't show up

  23. 23

    Android TodoApp with ListView - list don't show up

  24. 24

    Deadbeef doesn't show up in sound applet of Cinnamon

  25. 25

    Lenovo IdeaPad Flex 2 won’t start up Windows directly from Intel 335 SSD

  26. 26

    unexpected T_VARIABLE on opencart?

  27. 27

    Text won't write to page but will show in alert() message. JavaScript and HTML

  28. 28

    android studio won't show device when trying to run app (on Mac)

  29. 29

    AngularJS animation won't stop immediately when ng-show is false

뜨겁다태그

보관