прог

Рейтинг
3
Регистрация
23.12.2014

RewriteEngine On

RewriteBase /

Выдает ошибку

---------- Добавлено 10.01.2015 в 22:58 ----------

А точно сохранили на ФТП то, что перекодировали?

Как это то?

---------- Добавлено 10.01.2015 в 23:03 ----------

При

RewriteEngine On

RewriteBase /

Заработало после того как сохранил в otepad как encode in ansi

Теперь помогите разобраться что в файле не так. Или мне по одной строчке добавлять и проверять :)

---------- Добавлено 10.01.2015 в 23:11 ----------

Я нашел ошибка в :# Prevent Direct Access to files

<FilesMatch "(?i)((\.tpl|\.ini|\.log|(?<!robots)\.txt))">

Order deny,allow

Deny from all

</FilesMatch>

Походу тех.поддержка хостинга права, вот только не ответила как исправить:(
Что именно исправить в FilesMatch не понял. Помогите пожалуйcта

Invalid command '\xef\xbb\xbf#' Это байты BOM. Перекодируйте файлы в utf-8 без BOM или в windows-1251.

Пробовал перекодировать в utf-8, 1251 с помощью notepad++ и на хостинге ,ошибка 500.

Мне сказали из поддержки хостинга попробуйте подкорректировать: <FilesMatch "(?i)((\.tpl|\.ini|\.log|(?<!robots)\.txt))">. Не знаю что тут не так в этой строке😕.Или они ошиблись?

эта ошибка и без последних двух строчек. До хостера не могу дозвониться( праздники чтоли) Ошибка 502 я так понял дело в хостинге. Буду у них узнавать.

Все получилось, прекиньте Notepad при переименововании файл делал странным содержанием🤪 я вобщем переименновал файл а потом скопировал текст из .htaccess.txt в .htaccess и все заработало!☝

смысле левый это и есть переименованый фал .htaccess.txt в .htaccess.

Вы веделили жирным цветом но на что эти строки заменить?:)

Даю еще фал переименованный

<?xml version="1.0" encoding="UTF-8" ?>

<!--

By modifying this file, you can customize your context menu popuped as right clicking on the edit zone.

It may be more convinient to access to your frequent used commands via context menu than via the top menu.

Please check "How to Customize the Context Menu" on:

http://sourceforge.net/apps/mediawiki/notepad-plus/index.php?title=Context_Menu

-->

<NotepadPlus>

<ScintillaContextMenu>

<!--

Use MenuEntryName and MenuItemName to localize your commands to add.

The values should be in English but not in translated language.

(You can set Notepad++ language back to English from Preferences dialog via menu "Settings->Preferences...")

-->

<Item MenuEntryName="Edit" MenuItemName="Cut"/>

<Item MenuEntryName="Edit" MenuItemName="Copy"/>

<Item MenuEntryName="Edit" MenuItemName="Paste"/>

<Item MenuEntryName="Edit" MenuItemName="Delete"/>

<Item MenuEntryName="Edit" MenuItemName="Select all"/>

<Item MenuEntryName="Edit" MenuItemName="Begin/End Select"/>

<!-- id="0" is the separator -->

<Item id="0"/>

<!-- You can use command id to add the commands you want.

Check english.xml to get commands id:

http://notepad-plus.svn.sourceforge.net/viewvc/notepad-plus/trunk/PowerEditor/installer/nativeLang/english.xml

Use FolderName (optional) to create sub-menu. FolderName can be used in any type of item.

FolderName value can be in any language.

-->

<Item FolderName="Style token" id="43022"/>

<Item FolderName="Style token" id="43024"/>

<Item FolderName="Style token" id="43026"/>

<Item FolderName="Style token" id="43028"/>

<Item FolderName="Style token" id="43030"/>

<Item FolderName="Remove style" id="43023"/>

<Item FolderName="Remove style" id="43025"/>

<Item FolderName="Remove style" id="43027"/>

<Item FolderName="Remove style" id="43029"/>

<Item FolderName="Remove style" id="43031"/>

<Item FolderName="Remove style" id="43032"/>

<Item id="0"/>

<!--

To add plugin commands, you have to use PluginEntryName and PluginCommandItemName to localize the plugin commands

-->

<Item FolderName="Plugin commands" PluginEntryName="MIME Tools" PluginCommandItemName="Base64 Encode" />

<Item FolderName="Plugin commands" PluginEntryName="MIME Tools" PluginCommandItemName="Base64 Decode" />

<!--

Use ItemNameAs (optional) to rename the menu item name in the context menu

ItemNameAs can be used in any type of item. ItemNameAs value can be in any language.

-->

<Item FolderName="Plugin commands" PluginEntryName="NppExport" PluginCommandItemName="Copy all formats to clipboard" ItemNameAs="Copy Text with Syntax Highlighting" />

<Item id="0"/>

<Item MenuEntryName="Edit" MenuItemName="UPPERCASE"/>

<Item MenuEntryName="Edit" MenuItemName="lowercase"/>

<Item id="0"/>

<Item MenuEntryName="Edit" MenuItemName="Toggle Single Line Comment"/>

<Item MenuEntryName="Edit" MenuItemName="Block Comment"/>

<Item MenuEntryName="Edit" MenuItemName="Block Uncomment"/>

<Item id="0"/>

<Item MenuEntryName="View" MenuItemName="Hide lines"/>

</ScintillaContextMenu>

</NotepadPlus>

можно попробовать заменить директиву Options +FollowSymLinks на Options +SymLinksIfOwnerMatch

Как?

вообще, надо смотреть логи

Что именно показать?

повторяю при изменении фала в .htaccess сайт и админ панель не открывается ошибка 404

неужели без стороннего модуля, не работает встроенный чпу?

---------- Добавлено 26.12.2014 в 18:55 ----------

# 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

Options +FollowSymlinks

# Prevent Directoy listing

Options -Indexes

# Prevent Direct Access to files

<FilesMatch "(?i)((\.tpl|\.ini|\.log|(?<!robots)\.txt))">

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 /

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]

### 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

в этом случаи как и говорил ни админ ни сайт неработает 404 ошибка

12
Всего: 18