Jump to content


- - - - -

404 SEO url


8 replies to this topic

#1 Guest (guest)

Guest (guest)
  • Guests

Posted 12 December 2015 - 12:50 PM

H


  • 0

#2 Guest (guest)

Guest (guest)
  • Guests

Posted 12 December 2015 - 01:09 PM

Typo Sorry.

My problem is getting SEO urls to work. At the moment I get 404 error.

I'm using a SSL certificate (in case that is important)

I'v checked many forums and no solution workes for me. These are the things I've done

 

- Rename .htaccess.txt to .htaccess

- Turn on SEO url in the admin UI

- A2ENMOD rewrite (module active)

- Set RewriteBase to / (my domain name is pointed directly to the root folder by apache2)

- Set AllowOverride to All in default.conf, apache2.conf and sites Apache .conf files

 

Right now I turned of URL SEO, so my site works, but when I turn it on:

 

The url looks like it should be "https://mydomain.com/vaporizers but the page shows a 404 Not Found error.

 

My account page also gives a 404 error, but the url seems double "https://mydomain.com/account/account"

 

Categories With no SEO URL assigned also give a 404 error and the url is something like "https://mydomain.com...tegory&path=125"

 

This is my .htaccess:
 

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
# 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]

please help. I feel I have tried everything (which obviously can't be true)

 


  • 0

#3 MaxD

MaxD

    Administrator

  • Administrators
  • 715 posts

Posted 12 December 2015 - 04:04 PM

Are you sure your server is not using nginx instead apache?


  • 0

#4 ben-li

ben-li

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 12 December 2015 - 10:56 PM

The original question was posted by me. I created an account.

 

very sure. I have multiple live websites running on the same server, that I all set up myself.

 

thnx for the quick reply


  • 0

#5 MaxD

MaxD

    Administrator

  • Administrators
  • 715 posts

Posted 13 December 2015 - 05:44 PM

Try to write some nonsence at .htaccess file to check if it is working at all.


  • 0

#6 ben-li

ben-li

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 13 December 2015 - 09:53 PM

It's not. I think you are right. How can that be. It is named correctly .htaccess

Did i screw it up with apache2?


  • 0

#7 ben-li

ben-li

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 14 December 2015 - 10:42 AM

I do know for sure that other sites on the same server (Drupal sites) have a clean url and a working htaccess.


  • 0

#8 MaxD

MaxD

    Administrator

  • Administrators
  • 715 posts

Posted 14 December 2015 - 12:02 PM

Maybe something is wrong with that file. Try to copy .htaccess from your Drupal site to OpenCart's root


  • 0

#9 Guest (guest)

Guest (guest)
  • Guests

Posted 14 December 2015 - 02:16 PM

Renamed current .htaccess to .htaccess.bak and uploaded the drupal .htaccess. It has no effect at all. 


  • 0



Reply to this topic



  



 

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Community Skin by Fredson Nunes Junior