zcarm Posted May 4, 2020 Share Posted May 4, 2020 Hi all, First of all I am on a Mac ! I hope you can help me as I am stuck with this issue. I am sorry, if this topic might have been discussed somewhere within the forum already, but I could not find anything related to my problem. I want to work on skins, I installed downloaded the newest version of CubeCart, then downloaded Xampp - I have setup a database, all fine so far. But - Now I am stuck, please see screenshot. When I click on "Admin Control Panel", I am getting the message: Failed to create .htaccess file for Search Engine Friendly URL's. Please create this file in the stores root directory with the following content. Okay, then I have created such a file called .htaccess and copy the entire content into a text file and name it .htaccess. Of course I put it into the root directory. Even after stopping and restarting the apache server, it does not work at all and I have no more idea what to do. I was searching the net for an hour and could not find any proper solution for this problem. Please can you help me ? Thank you and best regards, Berny Failed to create .htaccess file for Search Engine Friendly URL's. Please create this file in the stores root directory with the following content. ##### START CubeCart .htaccess ##### ### GZIP Compression ### <ifmodule mod_deflate.c> AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript </ifmodule> ### Files Expiration ### <IfModule mod_expires.c> ExpiresActive On ExpiresByType text/html "access 0 seconds" ExpiresDefault "access 7 days" </IfModule> ### File Security ### <FilesMatch "\.(htaccess)$"> Order Allow,Deny Deny from all </FilesMatch> ### Apache directory listing rules ### DirectoryIndex index.php index.htm index.html IndexIgnore * <ifModule mod_headers.c> Header always append X-Frame-Options SAMEORIGIN </ifModule> ### Rewrite rules for SEO functionality ### <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / ##### START v4 SEO URL BACKWARD COMPATIBILITY ##### RewriteCond %{QUERY_STRING} (.*)$ RewriteCond %{REQUEST_FILENAME} !-f RewriteRule cat_([0-9]+)(\.[a-z]{3,4})?(.*)$ index.php?_a=category&cat_id=$1&%1 [NC] RewriteCond %{QUERY_STRING} (.*)$ RewriteCond %{REQUEST_FILENAME} !-f RewriteRule prod_([0-9]+)(\.[a-z]{3,4})?$ index.php?_a=product&product_id=$1&%1 [NC] RewriteCond %{QUERY_STRING} (.*)$ RewriteCond %{REQUEST_FILENAME} !-f RewriteRule info_([0-9]+)(\.[a-z]{3,4})?$ index.php?_a=document&doc_id=$1&%1 [NC] RewriteCond %{QUERY_STRING} (.*)$ RewriteCond %{REQUEST_FILENAME} !-f RewriteRule tell_([0-9]+)(\.[a-z]{3,4})?$ index.php?_a=product&product_id=$1&%1 [NC] RewriteCond %{QUERY_STRING} (.*)$ RewriteCond %{REQUEST_FILENAME} !-f RewriteRule _saleItems(\.[a-z]+)?(\?.*)?$ index.php?_a=saleitems&%1 [NC,L] ##### END v4 SEO URL BACKWARD COMPATIBILITY ##### RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !=/favicon.ico RewriteRule ^(.*)\.html?$ index.php?seo_path=$1 [L,QSA] </IfModule> ### Default store 404 page ### ErrorDocument 404 /index.php ## Override default 404 error document for missing page resources ## <FilesMatch "\.(gif|jpe?g|png|ico|css|js|svg|webp)$"> ErrorDocument 404 "<html></html> Link to comment Share on other sites More sharing options...
Al Brookbanks Posted May 4, 2020 Share Posted May 4, 2020 If you delete the .htaccess file then make the public html folder writable it should work. Assuming this isn't a production environment that should be ok. CubeCart is developed mainly on Mac. Link to comment Share on other sites More sharing options...
zcarm Posted May 4, 2020 Author Share Posted May 4, 2020 Thank you so much for your super speedy response. I am sorry, but there is no public.html folder in my file structure.... Screen Shot 1 Link to comment Share on other sites More sharing options...
Al Brookbanks Posted May 4, 2020 Share Posted May 4, 2020 When I said public html folder I didn't strictly mean it would be called that. In your case it's the htdocs folder. Link to comment Share on other sites More sharing options...
zcarm Posted May 4, 2020 Author Share Posted May 4, 2020 I really dont know how to thank you ! Wow, this worked now, after 2 hrs investigating. Thank you so much !!!!! Highly appreciated ! Link to comment Share on other sites More sharing options...
Al Brookbanks Posted May 4, 2020 Share Posted May 4, 2020 Just a taste of our support. If you ever find you require further official support please do have a look at our support offerings which also come with our hosted solution. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.