Post by Casper » Thu Dec 03, 2015 9:25 pm

Okay so I use the newest OpenCart in the 1.5 series.

When I enable "Use SEO URLs" under System -> Settings -> Edit -> Server, it just doesn't work. Initial when I enable it (before changing the name of htaccess.txt to .htaccess), I notice on my webshop the links do appear correct when I hover my mouse over them, like the whole product name is display. When I click on it, I get error "Not Found" 404.

When I then change htaccess.txt to .htaccess , the whole webshop and admin panel stops working. I get the error "
Internal Server Error" 500 Internal Server Error. I cant log in to the admin panel before I change the name back to htaccess.txt

I have tried removing the # at the bottom of the htaccess file to activate those things, still doesn't work.

I've worked with the newest prestashop before on the same server and SEO friendly URL's worked fine, didn't have to change any code or any server settings or anything like that.

Why doesn't it work??

Newbie

Posts

Joined
Thu Dec 03, 2015 9:14 pm

Post by tdaubs » Fri Dec 04, 2015 7:28 am

Did you modify the .htaccess file at all? Does your server allow mod rewrite?

If you modified the .htaccess file, download the original and try it.

Image
Opencart Support . Buy Me a Coffee?


User avatar
Active Member

Posts

Joined
Fri Apr 08, 2011 4:51 am
Location - Southern California

Post by Casper » Fri Dec 04, 2015 5:05 pm

I dont know how you check if "mod rewrite" is allowed, but like I said, prestashop had no trouble making the URL's SEO friendly (on the same server). How do you check if your server allows mod rewrite?

I renamed the htaccess file, from htaccess.txt to .htaccess . Before changing its name (but after activating SEO friendly URLs), the website still worked, but some links were broken (Not found 404). Then after changing the name to .htaccess , the whole site went down (500 Internal Server Error).

Then at last I tried modifying the content of htaccess, trying to remove all the # by all of these at the bottom, below the comments. I removed what I marked here in red:
### 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
Didn't change anything. Still didn't work.

Newbie

Posts

Joined
Thu Dec 03, 2015 9:14 pm

Post by Casper » Sat Dec 12, 2015 3:53 am

Update: I just talked with my hosting company and mod_rewrite IS enabled! So now I really don't know what the problem is.

Any ideas on what I can try?

Newbie

Posts

Joined
Thu Dec 03, 2015 9:14 pm

Post by tdaubs » Sat Dec 12, 2015 3:57 am

Did you download the original .htaccess file again and try that?

Image
Opencart Support . Buy Me a Coffee?


User avatar
Active Member

Posts

Joined
Fri Apr 08, 2011 4:51 am
Location - Southern California

Post by Casper » Mon Dec 14, 2015 5:13 pm

Where do I download that?

Newbie

Posts

Joined
Thu Dec 03, 2015 9:14 pm

Post by tdaubs » Tue Mar 15, 2016 9:56 am

It's included in the Opencart download itself. The file is named .htaccess.txt which obviously needs to be renamed to .htaccess for it to work.

Image
Opencart Support . Buy Me a Coffee?


User avatar
Active Member

Posts

Joined
Fri Apr 08, 2011 4:51 am
Location - Southern California

Post by mona@wewing » Fri Jul 15, 2016 9:46 pm

Hello all ,
Its me mona , I am working on opencart on the SEO urls from admin end. I have tried many solutions but not getting solution yet.
1. I have correct .htaccess downloaded from opencart forum
2. I have added seo keywords at category and product
3. I have enable the setting from admin->setting->server.

Still I am facing same issue. Showing following , Iam working on local machin
-------------------------------------------------------
Object not found!

The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.

If you think this is a server error, please contact the webmaster.
Error 404
192.168.1.26
Apache/2.4.12 (Unix) OpenSSL/1.0.1p PHP/5.5.27 mod_perl/2.0.8-dev Perl/v5.16.3
--------------------------------------------------------------------------------------------------
My version is 1.5.6.4.
If anyone helps me really thankful to him/her.

Thanks in advance.

Newbie

Posts

Joined
Fri Jul 15, 2016 9:39 pm

Post by tdaubs » Mon Jul 18, 2016 12:54 am

You mentioned you are working from a local machine. What is your setup? Is mod rewrite enabled?

Also, instead of downloading a htaccess file from the forums, first try the original that comes with opencart making sure to rename it accordingly.

.htaccess

Image
Opencart Support . Buy Me a Coffee?


User avatar
Active Member

Posts

Joined
Fri Apr 08, 2011 4:51 am
Location - Southern California

Post by carlorine11 » Thu Jul 21, 2016 4:11 pm

1: Enable SEO URLs in OpenCart. Go to System » Server » Use SEO URL’s
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
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:
SEO Keyword is unique, and no duplicates are allowed.
There should be no spaces in your SEO Keyword. You should use an underscore or hyphen between each word.

New member

Posts

Joined
Tue Apr 05, 2016 10:38 am
Who is online

Users browsing this forum: No registered users and 35 guests