20s Video of site showing issue
https://youtu.be/Zc17VGRmWQ0
When navigating around my site all content is my home page content. Displaying SEO URLs that match the selected categories, However, the content is the home page.
I.E every selected category displays the home page but the URL is SEOed to the selected category.
I think the issue is related to the .htaccess
.htaccess coding
# Use PHPBETA as default
AddHandler application/x-httpd-phpbeta .php
# 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
# For security reasons, Option followsymlinks cannot be overridden.
#Options +FollowSymlinks
#Options +SymLinksIfOwnerMatch
# Prevent Directoy listing
Options -Indexes
# Prevent Direct Access to files
<FilesMatch "(?i)((\.tpl|\.ini|\.log|(?<!robots)\.txt))">
Require all denied
## For apache 2.2 and older, replace "Require all denied" with these two lines :
# 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 /
RewriteRule ^sitemap.xml$ index.php?route=extension/feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=extension/feed/google_base [L]
RewriteRule ^system/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 received. 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
https://youtu.be/Zc17VGRmWQ0
When navigating around my site all content is my home page content. Displaying SEO URLs that match the selected categories, However, the content is the home page.
I.E every selected category displays the home page but the URL is SEOed to the selected category.
I think the issue is related to the .htaccess
.htaccess coding
# Use PHPBETA as default
AddHandler application/x-httpd-phpbeta .php
# 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
# For security reasons, Option followsymlinks cannot be overridden.
#Options +FollowSymlinks
#Options +SymLinksIfOwnerMatch
# Prevent Directoy listing
Options -Indexes
# Prevent Direct Access to files
<FilesMatch "(?i)((\.tpl|\.ini|\.log|(?<!robots)\.txt))">
Require all denied
## For apache 2.2 and older, replace "Require all denied" with these two lines :
# 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 /
RewriteRule ^sitemap.xml$ index.php?route=extension/feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=extension/feed/google_base [L]
RewriteRule ^system/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 received. 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
I m no guru on .htaccess files or PHP Beta - but there is whitespace in the file between 'beta' and '.php' which might affect
Go the All Blacks!
Thanks for your time, I made the change and it gave me a 500 Internal Server Error error andsimonpieman wrote:I m no guru on .htaccess files or PHP Beta - but there is whitespace in the file between 'beta' and '.php' which might affect
Apache Server at heatpumpnz.co.nz Port 443
Also the .htaccess coding used to be.
# Use PHPBETA Single php.ini as default
AddHandler application/x-httpd-phpbetas .php
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]]
# Use PHPBETA Single php.ini as default
AddHandler application/x-httpd-phpbetas .php
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]]
If yo dont get an answer by tommorow (NZ) flick me a pvt message and I can try to help. I am in Auckland ancd suspect its something simple. Assume you ar moving from Wordpress to Opencart?
Go the All Blacks!
I did move from word press
Edit Did not move from Word press
Edit Did not move from Word press
Last edited by 007davidjames on Fri Nov 18, 2016 1:21 pm, edited 1 time in total.
Do you mean all links are redirecting to your home page, or your home page layout is being shown on all pages (maybe above or below the correct content)?
Edit: Saw your video so it looks to me like you may have your home page layout set to be the default so it's showing on all pages.
Check under settings > yourstore > general tab and see what the default layout is set to. Change it to something you are NOT using (I use default for the layout here and then create a layout for HOME, etc). Save and clear your modifications and caches.
Edit: Saw your video so it looks to me like you may have your home page layout set to be the default so it's showing on all pages.
Check under settings > yourstore > general tab and see what the default layout is set to. Change it to something you are NOT using (I use default for the layout here and then create a layout for HOME, etc). Save and clear your modifications and caches.
Running Opencart v3.0.3.2 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.
Also you do NOT want to use the htaccess that came with wordpress if that is what you are doing (looks like it might be!). Make sure you disable it (rename it something like .htaccess.wp) and be certain to rename the .htaccess.txt that came with opencart to .htaccess in the directory where opencart is installed (if you are also running wordpress on the same site, then it should be in its own folder with its own htaccess file).
Running Opencart v3.0.3.2 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.
Thanks for the response, I changed the default layout and reset my cache and still no change.
Home page layout is being shown on all pages, I can load cart and a couple but not categories
I have attached my configure.php and admin copy of the configure.php
If anyone could have a look that would be appreciated.
Home page layout is being shown on all pages, I can load cart and a couple but not categories
I have attached my configure.php and admin copy of the configure.php
If anyone could have a look that would be appreciated.
Attachments
Admin Copy of Config
simonpieman wrote:If yo don't get an answer by tomorrow (NZ) flick me a PVT message, and I can try to help. I am in Auckland and suspect its something simple. Assume you ar moving from Wordpress to Opencart?
Thank you Simonpieman for going through my files and helping me get to the issue and anyone else that help me get to the issue.
My site is now working; I have SEO URLs working.
The issue was simple as..(kiwi) all I needed to do was add a couple of Sss to some HTTP, and all is working. I also had a second .htaccess that needed editing.
Thanks again for the help
Hello,
I'm having same issue, could you please let me know how to fix it.
Thank you for your help in advance.
I'm having same issue, could you please let me know how to fix it.
Thank you for your help in advance.
Who is online
Users browsing this forum: No registered users and 124 guests