Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

var200w

Newbie
  
  • Posts

    7
  • Joined

  • Last visited

var200w's Achievements

Rookie

Rookie (2/14)

  • First Post
  • Week One Done
  • One Month Later
  • One Year In
  • Conversation Starter

Recent Badges

0

Reputation

  1. Сайт - http://tkdecor-m.ru/ . Сделал там ЧПУ и теперь, все страницы кроме главной отдают код 302. Главная отдает 200. Пример - http://tkdecor-m.ru/potolochnyi-plintus/decor-ek/d20755/ , со старой страницы с параметрами редиректит на новую с кодом 301, здесь проблем нет. Со страницы без / тоже редиректит на новую страницу со слешем 301, тоже все ок. Но вот финальная страница http://tkdecor-m.ru/potolochnyi-plintus/decor-ek/d20755/ отдает 302. Читал про настройки ЧПУ и тд. Делал правки в файле seo_pro, ничего не помогает. Если интересно, пишите цену в личку и сроки)
  2. Если я ставлю $this->response->redirect($seo, 301); в файле seo_pro то у меня новые урл все равно отдают 302. Или где надо было поменять?
  3. Возможно, проблема в .htaccess, так как если его удаляю, то страницы отдают 200. Буду очень благодарен если посмотрите # 1.To use URL Alias you need to be running apache with mod_rewrite enabled. # 2. In your opencart directory rename htaccess.txt to .htaccess. # For any support issues please visit: http://www.opencart.com Order Allow,Deny Allow from all Deny from 185.13.112.93 Options +FollowSymlinks # 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 RewriteRule ^index.php$ / [QSA,R] RewriteBase / RewriteCond %{QUERY_STRING} ^route=common/home$ RewriteRule ^index.php$ /? [R=301,L] RewriteCond %{QUERY_STRING} ^path=(\d+)&route=product/category RewriteRule ^index\.php$ index.php?route=product/category&path=%1 [L] RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L] RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css) RewriteCond %{QUERY_STRING} .*route=(.+)* RewriteRule ^(.*) index.php?route=$1 [L,QSA] 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] # �������� c www �� ��� www RewriteCond %{HTTP_HOST} ^www.tkdecor-m.ru RewriteRule ^(.*)$ http://tkdecor-m.ru/$1 [R=301,L] ### Additional Settings that may need to be enabled for some servers ### Uncomment the commands by removing the # sign in front of it. ### If you get an "Internal Server Error 500" after enabling any of the following settings, restore the # as this means your host doesn't allow that. # 1. If your cart only allows you to add one item at a time, it is possible register_globals is on. This may work to disable it: # php_flag register_globals off # 2. If your cart has magic quotes enabled, This may work to disable it: # php_flag magic_quotes_gpc Off # 3. Set max upload file size. Most hosts will limit this and not allow it to be overridden but you can try # php_value upload_max_filesize 999M # 4. set max post size. uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields # php_value post_max_size 999M # 5. set max time script can take. uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields # php_value max_execution_time 200 # 6. set max time for input to be recieved. Uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields # php_value max_input_time 200 # 7. disable open_basedir limitations # php_admin_value open_basedir none php_flag magic_quotes_gpc Off php_flag register_globals Off php_value default_charset UTF-8 php_value memory_limit 64M php_value max_execution_time 18000 php_value upload_max_filesize 999M php_flag safe_mode Off php_value mysql.connect_timeout 20 php_flag session.use_cookies On php_flag session.use_trans_sid Off php_flag session.auto_start Off php_value session.gc_maxlifetime 12000000 php_flag allow_url_fopen on php_value display_errors 1 php_value error_reporting E_ALL
  4. Поменял, у меня страница http://tkdecor-m.ru/potolochnyi-plintus/Decor-EK отдает 301 как и надо. Но страница http://tkdecor-m.ru/potolochnyi-plintus/Decor-EK/ отдает 302. Если заменяю эти строки header($this->request->server['SERVER_PROTOCOL'] . ' 301 Moved Permanently'); $this->response->redirect($seo); на это $this->response->redirect($this->cache_data['queries'][$route_], 301); $this->response->redirect($seo, 301); то у меня страница http://tkdecor-m.ru/potolochnyi-plintus/Decor-EK/ так и продолжает отдавать 302, а вот страница http://tkdecor-m.ru/potolochnyi-plintus/Decor-EK вообще перестает работать , пишет ошибка в файле responce
  5. У меня почему то на сайте, все страницы кроме главной отдают 302
  6. У меня в файле seo pro нет такой строчки «response->redirect($this->cache_data['queries'][$route_], 301);» , есть только вторая а на месте первой стоит вот такая строка - header($this->request->server['SERVER_PROTOCOL'] . ' 301 Moved Permanently');
  7. Добрый день, проблема следущая - есть магазин на опенкарт 1.5, поставил туда seopro для чпу, теперь старые страницы отдают корректный 301 редирект, но вот товары по новым урл отдают 302. В чем может быть проблема ? Пример товара - http://tkdecor-m.ru/potolochnyi-plintus/Decor-EK/d20755/
×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.