Post by BrianW » Sun Jan 25, 2015 1:40 am

New install of 2.1 and I'm trying to get SEO URLs working. When I enable the default .htaccess (renaming .htaccess.txt) the site fails to load at all, giving me a 500 error.

I have mod rewrite installed, and in fact I tested it with a .htaccess with this code:

Code: Select all

RewriteEngine on
# Use PHP5.4 as default
AddHandler application/x-httpd-php54 .php
RewriteCond %{HTTP_HOST} ^awesomelygeek.com$
RewriteRule ^test$ "http\:\/\/www\.awesomelygeek\.com\/" [R=301,L]
That redirects just fine.

I tested the .htaccess file a bit and confirmed that it's the rewrites that are causing the site to fail to load. If I remove the line:

Code: Select all

RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]   
then the site will load, but SEO URLs will not work.

My old 1.4.9 install on the same host the SEO URLs worked fine. Any suggestions on what is tripping things up?

Give a man a fire and you make him warm for a day. Light a man on fire, and you make him warm for the rest of his life.
http://www.awesomedice.com


New member

Posts

Joined
Mon Mar 21, 2011 5:39 am
Location - Massachusetts

Post by onlinemarketer » Sun Jan 25, 2015 1:22 pm

I just tried commenting out bits of my .htaccess file until it worked.

Active Member

Posts

Joined
Sat May 14, 2011 8:21 pm

Post by BrianW » Tue Jan 27, 2015 9:59 pm

Unfortunately the one line I could remove to allow the site to load was the last one mentioned in my post, and SEO URLs did not work without that line.

Give a man a fire and you make him warm for a day. Light a man on fire, and you make him warm for the rest of his life.
http://www.awesomedice.com


New member

Posts

Joined
Mon Mar 21, 2011 5:39 am
Location - Massachusetts

Post by yodapt » Tue Jan 27, 2015 10:08 pm

It's hard to find the answer without testing and knowing more about the environment.

Opencart Developer - My Extension Showcase
Contact me at aeon.yoda@gmail.com


User avatar
Active Member

Posts

Joined
Fri Jun 17, 2011 6:39 pm

Who is online

Users browsing this forum: No registered users and 30 guests