Post by turantekin » Thu Apr 19, 2012 8:04 pm

Hi guys

Such a idiotic problem. I have a problem with my SEO links.

Admin: Use SEO URL's: ON

Renamed the htaccess.txt to .htaccess

I have all SEOs unique already.

But when click any link it says:

Forbidden

You don't have permission to access /index.php on this server.

Apache/2 Server at 79.170.40.171 Port 80


See here: http://79.170.40.171/stabilitees.com/store/index.php

What do you think is the problem?

I Love Open Cart : )
http://www.stabilitees.com


Newbie

Posts

Joined
Fri Apr 22, 2011 7:23 am

Post by Avvici » Fri Apr 20, 2012 1:18 pm

Did you edit this line: RewriteBase /

If you installed in a sub folder make sure it points to that.

Then again if it's a 403 error then it has to do with your server....and not htaccess. Was it a forbidden 403?

If that's the case, 403 status code indicates that the client cannot access the requested resource. It means the wrong username and password were sent in the request, or that the permissions on the server do not allow what was being asked.

User avatar
Expert Member

Posts

Joined
Tue Apr 05, 2011 12:09 pm
Location - Asheville, NC

Post by Hangfire » Wed May 02, 2012 3:51 am

i have this same problem, I turn on SEO urls, rename .htaccess.txt to .htaccess and it 403's my whole site. I contacted my host support and all they would do was point me to a post here that doesn't address my issue :choke:

Newbie

Posts

Joined
Wed May 02, 2012 3:47 am

Post by Hangfire » Thu May 03, 2012 11:33 pm

I solved my problem, however i dont know if i did it correctly.

My original .htaccess had this:

Code: Select all

# Prevent Direct Access to files
 Order deny,allow
 Deny from all
 
I'm no coder, but that looked like it would deny the contents of the whole folder, my store root..

So after a bit of reading up on .htaccess I changed it to this to deny specific files:

Code: Select all

# Prevent Direct Access to files
 <FilesMatch "\.(tpl|ini|log)">
 Order deny,allow
 Deny from all
 </FilesMatch>
Success! But am I doing it right? And does .htaccess in the root effect just the store root or all the subfolders?

Newbie

Posts

Joined
Wed May 02, 2012 3:47 am

Post by kaanozgen@gmail.com » Thu Jun 18, 2015 5:54 pm

Wow that solved my problem! Thanks a lot!

O0


Posts

Joined
Thu Jun 18, 2015 5:53 pm
Who is online

Users browsing this forum: No registered users and 306 guests