vidmarc Posted May 15, 2013 Share Posted May 15, 2013 Can anybody help me with this working? When I switch it on the pages don't load. Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted May 15, 2013 Share Posted May 15, 2013 Is this a clean install or an upgrade? What version? Can you post what is in your htaccess. file? A link to your site might help, too. Quote Link to comment Share on other sites More sharing options...
vidmarc Posted May 15, 2013 Author Share Posted May 15, 2013 It's a clean install www.nucleusfilms.com Cubecart 5.2.1 ##### NOTE: Replace /shop/ with the relative web path of your catalog in the "Rewrite Base" line below: Options +FollowSymLinks RewriteEngine On RewriteBase / # From Ultimate SEO URLs RewriteRule ^(.*)-p-(.*).html$ index.php?main_page=product_info&products_id=$2&%{QUERY_STRING} [L] RewriteRule ^(.*)-c-(.*).html$ index.php?main_page=index&cPath=$2&%{QUERY_STRING} [L] RewriteRule ^(.*)-m-([0-9]+).html$ index.php?main_page=index&manufacturers_id=$2&%{QUERY_STRING} [L] RewriteRule ^(.*)-pi-([0-9]+).html$ index.php?main_page=popup_image&pID=$2&%{QUERY_STRING} [L] RewriteRule ^(.*)-pr-([0-9]+).html$ index.php?main_page=product_reviews&products_id=$2&%{QUERY_STRING} [L] RewriteRule ^(.*)-pri-([0-9]+).html$ index.php?main_page=product_reviews_info&products_id=$2&%{QUERY_STRING} [L] # For Open Operations Info Manager RewriteRule ^(.*)-i-([0-9]+).html$ index.php?main_page=info_manager&pages_id=$2&%{QUERY_STRING} [L] # For dreamscape's News & Articles Manager RewriteRule ^news/?$ index.php?main_page=news&%{QUERY_STRING} [L] RewriteRule ^news/rss.xml$ index.php?main_page=news_rss&%{QUERY_STRING} [L] RewriteRule ^news/archive/?$ index.php?main_page=news_archive&%{QUERY_STRING} [L] RewriteRule ^news/([0-9]{4})-([0-9]{2})-([0-9]{2}).html$ index.php?main_page=news&date=$1-$2-$3&%{QUERY_STRING} [L] RewriteRule ^news/archive/([0-9]{4})-([0-9]{2}).html$ index.php?main_page=news_archive&date=$1-$2&%{QUERY_STRING} [L] RewriteRule ^news/(.*)-a-([0-9]+)-comments.html$ index.php?main_page=news_comments&article_id=$2&%{QUERY_STRING} [L] RewriteRule ^news/(.*)-a-([0-9]+).html$ index.php?main_page=news_article&article_id=$2&%{QUERY_STRING} [L] # All other pages # Don't rewrite real files or directories RewriteCond %{REQUEST_FILENAME} !-f [NC] RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*).html$ index.php?main_page=$1&%{QUERY_STRING} [L] ######## Added by 1&1 Abuse department -- BEGIN # only remove if you enconter problems related to php5 # take different measures to secure your scripts in this case AddType x-mapp-php5 .php ######## Added by 1&1 Abuse department -- END ## File Security <FilesMatch ".(htaccess)$"> Order Allow,Deny Deny from all </FilesMatch> #### Apache directory listing rules #### DirectoryIndex index.php index.htm index.html IndexIgnore * #### Rewrite rules for SEO functionality #### <IfModule mod_rewrite.c> RewriteEngine On ######## 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> Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted May 15, 2013 Share Posted May 15, 2013 You said it was a clean install, but there seems to be lots of stuff in the htaccess from other sources - v4 mods?. I don't know enough to make suggestions, but hopefully those who can help will know what needs to be changed. I have more in my file, due to Fusion skin options, but I think this is all from mine that was stock - caveat - backup yours if you choose to try this file! ## File Security <FilesMatch ".(htaccess)$"> Order Allow,Deny Deny from all </FilesMatch> #### Apache directory listing rules #### DirectoryIndex index.php index.htm index.html IndexIgnore * #### Rewrite rules for SEO functionality #### <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{HTTP_HOST} !^STOREDOMAIN$ RewriteRule ^(.*)$ http://STOREDOMAIN/$1 [R=301] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !=/favicon.ico RewriteRule ^(.*).html?$ index.php?seo_path=$1 [L,QSA] </IfModule> Quote Link to comment Share on other sites More sharing options...
bsmither Posted May 15, 2013 Share Posted May 15, 2013 Your .htaccess file is executing this rule first: RewriteRule ^(.*).html$ index.php?main_page=$1&%{QUERY_STRING} [L] I suggest you remove everything above the "Added by 1&1 abuse" line. Quote Link to comment Share on other sites More sharing options...
vidmarc Posted May 16, 2013 Author Share Posted May 16, 2013 Sorry, my mistake. This is the actual .htaccess file I was using. ##### NOTE: Replace /shop/ with the relative web path of your catalog in the "Rewrite Base" line below: Options +FollowSymLinks RewriteEngine On RewriteBase / # From Ultimate SEO URLs RewriteRule ^(.*)-p-(.*).html$ index.php?main_page=product_info&products_id=$2&%{QUERY_STRING} [L] RewriteRule ^(.*)-c-(.*).html$ index.php?main_page=index&cPath=$2&%{QUERY_STRING} [L] RewriteRule ^(.*)-m-([0-9]+).html$ index.php?main_page=index&manufacturers_id=$2&%{QUERY_STRING} [L] RewriteRule ^(.*)-pi-([0-9]+).html$ index.php?main_page=popup_image&pID=$2&%{QUERY_STRING} [L] RewriteRule ^(.*)-pr-([0-9]+).html$ index.php?main_page=product_reviews&products_id=$2&%{QUERY_STRING} [L] RewriteRule ^(.*)-pri-([0-9]+).html$ index.php?main_page=product_reviews_info&products_id=$2&%{QUERY_STRING} [L] # For Open Operations Info Manager RewriteRule ^(.*)-i-([0-9]+).html$ index.php?main_page=info_manager&pages_id=$2&%{QUERY_STRING} [L] # For dreamscape's News & Articles Manager RewriteRule ^news/?$ index.php?main_page=news&%{QUERY_STRING} [L] RewriteRule ^news/rss.xml$ index.php?main_page=news_rss&%{QUERY_STRING} [L] RewriteRule ^news/archive/?$ index.php?main_page=news_archive&%{QUERY_STRING} [L] RewriteRule ^news/([0-9]{4})-([0-9]{2})-([0-9]{2}).html$ index.php?main_page=news&date=$1-$2-$3&%{QUERY_STRING} [L] RewriteRule ^news/archive/([0-9]{4})-([0-9]{2}).html$ index.php?main_page=news_archive&date=$1-$2&%{QUERY_STRING} [L] RewriteRule ^news/(.*)-a-([0-9]+)-comments.html$ index.php?main_page=news_comments&article_id=$2&%{QUERY_STRING} [L] RewriteRule ^news/(.*)-a-([0-9]+).html$ index.php?main_page=news_article&article_id=$2&%{QUERY_STRING} [L] # All other pages # Don't rewrite real files or directories RewriteCond %{REQUEST_FILENAME} !-f [NC] RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*).html$ index.php?main_page=$1&%{QUERY_STRING} [L] ######## Added by 1&1 Abuse department -- BEGIN # only remove if you enconter problems related to php5 # take different measures to secure your scripts in this case AddType x-mapp-php5 .php ######## Added by 1&1 Abuse department -- END ## File Security <FilesMatch ".(htaccess)$"> Order Allow,Deny Deny from all </FilesMatch> #### Apache directory listing rules #### DirectoryIndex index.php index.htm index.html IndexIgnore * #### Rewrite rules for SEO functionality #### <IfModule mod_rewrite.c> RewriteEngine On ######## 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> Quote Link to comment Share on other sites More sharing options...
vidmarc Posted May 16, 2013 Author Share Posted May 16, 2013 When I enable SEO URLs and click on a product from the home page the url appears in the browser address bar but the home page remains. Same with selecting any of the category listings - the url appears in the address bar but the store remains on the home page. Quote Link to comment Share on other sites More sharing options...
vidmarc Posted May 16, 2013 Author Share Posted May 16, 2013 Have tried various .htaccess installs (it seems to change each time I click on the install .htaccess button). Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted May 16, 2013 Share Posted May 16, 2013 You can delete yours and copy Bsmither's barebones .htaccess directly into the file, AFTER you save yours as a backup. Where is this Ultimate SEO URLs section coming from? Quote Link to comment Share on other sites More sharing options...
vidmarc Posted May 16, 2013 Author Share Posted May 16, 2013 Thanks for the feedback - where can I find Bsmither's .htaccess file? Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted May 16, 2013 Share Posted May 16, 2013 Your .htaccess file is executing this rule first: RewriteRule ^(.*).html$ index.php?main_page=$1&%{QUERY_STRING} [L] I suggest you remove everything above the "Added by 1&1 abuse" line. I think that leaves you with this: ######## Added by 1&1 Abuse department -- BEGIN # only remove if you enconter problems related to php5 # take different measures to secure your scripts in this case AddType x-mapp-php5 .php ######## Added by 1&1 Abuse department -- END ## File Security <FilesMatch ".(htaccess)$"> Order Allow,Deny Deny from all </FilesMatch> #### Apache directory listing rules #### DirectoryIndex index.php index.htm index.html IndexIgnore * #### Rewrite rules for SEO functionality #### <IfModule mod_rewrite.c> RewriteEngine On ######## 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> Did the one I suggested not work, either? Mine doesn't have the 1and1 section (which you probably need to keep) or the backward compatibility section (which I'm thinking you don't need since this was a clean install). Quote Link to comment Share on other sites More sharing options...
vidmarc Posted May 16, 2013 Author Share Posted May 16, 2013 I do have a few mods, will these affect the .htaccess file? Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted May 16, 2013 Share Posted May 16, 2013 So is the Ultimate SEO Urls a v5 mod? If it is, have you contacted the mod developer and asked for help? Quote Link to comment Share on other sites More sharing options...
vidmarc Posted May 16, 2013 Author Share Posted May 16, 2013 I don't have the ultimate url mod as far as I'm aware? Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted May 16, 2013 Share Posted May 16, 2013 I don't have the ultimate url mod as far as I'm aware? There's a whole section in your original .htaccess about that mod. Quote Link to comment Share on other sites More sharing options...
vidmarc Posted May 16, 2013 Author Share Posted May 16, 2013 Weird, I haven't even downloaded it. Your .htaccess file is executing this rule first: RewriteRule ^(.*).html$ index.php?main_page=$1&%{QUERY_STRING} [L] I suggest you remove everything above the "Added by 1&1 abuse" line. I think that leaves you with this: ######## Added by 1&1 Abuse department -- BEGIN # only remove if you enconter problems related to php5 # take different measures to secure your scripts in this case AddType x-mapp-php5 .php ######## Added by 1&1 Abuse department -- END ## File Security <FilesMatch ".(htaccess)$"> Order Allow,Deny Deny from all </FilesMatch> #### Apache directory listing rules #### DirectoryIndex index.php index.htm index.html IndexIgnore * #### Rewrite rules for SEO functionality #### <IfModule mod_rewrite.c> RewriteEngine On ######## 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> Did the one I suggested not work, either? Mine doesn't have the 1and1 section (which you probably need to keep) or the backward compatibility section (which I'm thinking you don't need since this was a clean install). I just tried this .htaccess file but now I'm getting error 404s. The urls are strange too. Something is very wrong, as these are all for different products: http://www.nucleusfilms.com/death-ship-p16-p18.html http://www.nucleusfilms.com/education-anglaise-p24-p25-p26-p27-p28-p29-p30-p31-p32.html http://www.nucleusfilms.com/death-ship-p16-p18-p19.html Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted May 16, 2013 Share Posted May 16, 2013 Try this ## File Security <FilesMatch ".(htaccess)$"> Order Allow,Deny Deny from all </FilesMatch> #### Apache directory listing rules #### DirectoryIndex index.php index.htm index.html IndexIgnore * #### Rewrite rules for SEO functionality #### <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{HTTP_HOST} !^STOREDOMAIN$ RewriteRule ^(.*)$ http://STOREDOMAIN/$1 [R=301] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !=/favicon.ico RewriteRule ^(.*).html?$ index.php?seo_path=$1 [L,QSA] </IfModule> Quote Link to comment Share on other sites More sharing options...
vidmarc Posted May 16, 2013 Author Share Posted May 16, 2013 That one takes the links on the site here: http://storedomain/admin.php?_g=settings Quote Link to comment Share on other sites More sharing options...
vidmarc Posted May 16, 2013 Author Share Posted May 16, 2013 I changed STOREDOMAIN but it doesn't work at all now. No site loads. ## File Security <FilesMatch ".(htaccess)$"> Order Allow,Deny Deny from all </FilesMatch> #### Apache directory listing rules #### DirectoryIndex index.php index.htm index.html IndexIgnore * #### Rewrite rules for SEO functionality #### <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{HTTP_HOST} !^STOREDOMAIN$ RewriteRule ^(.*)$ http://www.nucleusfilms.com/$1 [R=301] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !=/favicon.ico RewriteRule ^(.*).html?$ index.php?seo_path=$1 [L,QSA] </IfModule> Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted May 16, 2013 Share Posted May 16, 2013 RewriteEngine onRewriteCond %{HTTP_HOST} !^STOREDOMAIN$RewriteRule ^(.*)$ http://www.nucleusfilms.com/$1 [R=301] Did you change the first one to !^nucleusfilms.com$ as well? Quote Link to comment Share on other sites More sharing options...
vidmarc Posted May 17, 2013 Author Share Posted May 17, 2013 Yes, and sadly the site won't load at all. This .htaccess rewrite thing has me stumped. See error below. ## File Security <FilesMatch ".(htaccess)$"> Order Allow,Deny Deny from all </FilesMatch> #### Apache directory listing rules #### DirectoryIndex index.php index.htm index.html IndexIgnore * #### Rewrite rules for SEO functionality #### <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{HTTP_HOST} !^nucleusfilms.com$ RewriteRule ^(.*)$ http://www.nucleusfilms.com/$1 [R=301] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !=/favicon.ico RewriteRule ^(.*).html?$ index.php?seo_path=$1 [L,QSA] </IfModule> "Too many redirects occurred trying to open "http://www.nucleusfilms.com/". This might occur if you open a page that is redirected to open another page which is then redirected to open the original page. Quote Link to comment Share on other sites More sharing options...
vidmarc Posted May 20, 2013 Author Share Posted May 20, 2013 Sorry to bump this, but can anyone help? I've been on to 1&1 but they don't offer support for this. Quote Link to comment Share on other sites More sharing options...
bsmither Posted May 20, 2013 Share Posted May 20, 2013 As an experiment, remove this: RewriteCond %{HTTP_HOST} !^nucleusfilms.com$RewriteRule ^(.*)$ http://www.nucleusfilms.com/$1 [R=301] Then, the following wierdness has been discovered: if you are using the Chrome browser, "Too Many Redirects" could be caused by the weird fact that your computer's time may be off by too many minutes. Please verify that your computer's time is set as closely as possible to the real world time. Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted May 20, 2013 Share Posted May 20, 2013 I DID have the redirect problem when using Chrome. I had to force my computer to do a time synch from the Internet Time tab, but it came back in a few days. So I stopped using Chrome. Quote Link to comment Share on other sites More sharing options...
vidmarc Posted May 20, 2013 Author Share Posted May 20, 2013 I'm using Safari, does that make a difference? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.