News:

AbanteCart v1.4.2.1 is released.

Main Menu

Do you like AbanteCart? Please rate AbanteCart or share your experience with other eCommerce entrepreneurs. Go to Softaculous rating page to add your rating or write a review

htaccess on public_html error

Started by varywise, June 17, 2017, 06:23:57 PM

Previous topic - Next topic

varywise

Hi Guys,

In need of ****** help, i tried editing my htaccess file, idiotic move, did not back the original up. Now I dont have the original copy of the last line, so the site is redirecting incorrectly, or if it does, the product pages do not. Please please assist. A snippet of what i have can be found below. The last line of code is INCORRECT.

RewriteEngine on
RewriteCond %{HTTP_HOST} ^.*$
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$

====INCORRECT CODE ==============
RewriteRule ^(.*)$ "https\:\/\/domain\.com\/index\.php\/?" [R=301,L]


eCommerce Core

Here is the link to original .htaccess file:
https://github.com/abantecart/abantecart-src/blob/master/public_html/.htaccess.txt

I am not very clear what you need to do, but if you like to redirect to different domain, correct line is this:
RewriteRule ^(.*)$ https://domain.com [R=301,L]



varywise

Hii, thanks for the snipped but still no luck  :( :(. Im editing the htaccess.access and not the txt. Could i be doing something wrong? Sorry I am really new to this. Its not loading the page at all.

Basara

Quote from: varywise on June 19, 2017, 02:17:23 AM
Hii, thanks for the snipped but still no luck  :( :(. Im editing the htaccess.access and not the txt. Could i be doing something wrong? Sorry I am really new to this. Its not loading the page at all.

Hello. The correct name of file is .htaccess and not htaccess.access  ;)
If you are looking for default AbanteCart htaccess rules you can always find it in github https://github.com/abantecart/abantecart-src/blob/master/public_html/.htaccess.txt

varywise

Hi guys,

Thanks for the replies and it was such a silly error, the core folder was missing. Once added i just renamed the htaccess.txt to htaccess and solved!

Forum Rules Code of conduct
AbanteCart.com 2010 -