Post by davidbfranks » Wed May 06, 2015 11:30 pm

Hi,

I am trying to install a helpdesk script within my opencart directory in a folder called "helpdesk" e.g http://www.mystore.com/helpdesk

But my .htaccess file in OpenCart seems to be blocking me making changes in my helpdesk admin panel.

my current htaccess looks like this

Code: Select all


# 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 /
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
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]



what do i need to change to get opencart to ignore my "helpdesk" folder but not impact opencart URL's?

Thanks

Active Member

Posts

Joined
Mon Mar 04, 2013 10:31 pm
Location - London

Post by shahid21290 » Wed May 06, 2015 11:39 pm

hi

RewriteBase /
RewriteCond %{HTTP_HOST} !^www\.

replace with

RewriteBase /helpdesk/
RewriteCond %{HTTP_HOST} !^www\.

For quick, professional OpenCart support please email scf8127@gmail.com


User avatar
New member

Posts

Joined
Fri May 03, 2013 8:32 pm

Post by davidbfranks » Thu May 07, 2015 12:10 am

shahid21290 wrote:hi

RewriteBase /
RewriteCond %{HTTP_HOST} !^www\.

replace with

RewriteBase /helpdesk/
RewriteCond %{HTTP_HOST} !^www\.
Thank you, but that shouldn't affect my opencart store at all should it?

Active Member

Posts

Joined
Mon Mar 04, 2013 10:31 pm
Location - London

Post by PeteA » Fri May 08, 2015 3:23 pm

The above would mess your store up as it would assume your store is installed within /helpdeks. You want to add the following line:

Code: Select all

RewriteCond %{REQUEST_URI} !^/helpdesk
before your

Code: Select all

RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
line

New member

Posts

Joined
Wed Jul 30, 2014 5:46 pm
Who is online

Users browsing this forum: Amazon [Bot] and 36 guests