В общем ситуация такова имеется сайт с движком Reload cms все установил как полагается но не всё так просто Движок установлен в папку reload и должен быть доступен по адресу yourdomain.ru/reload но он открывается только если дописать /index.php но лишь часть проблемы, все ссылки выглядят так yourdomain.ru/reload/?module=forum и таким образом все что я вызываю с этих ссылок выдает forbidden ошибку Не могу понять в чем дело пробовал некоторую магию в htaccess но не получилось Еще заметил что если задать любой адрес без указания скрипта(*.php) история повторяется Я так понял что проблема в сервере он не отдает адреса без указания скрипта Может кто нибудь знает как её вылечить Прилагаю настройки php Код (Text): PHP Version 5.2.13 System Linux orca.uz 2.6.30.10-105.2.23.fc11.x86_64 #1 SMP Thu Feb 11 07:06:34 UTC 2010 x86_64 Build Date Mar 6 2010 07:41:52 Configure Command './configure' '--build=x86_64-redhat-linux-gnu' '--host=x86_64-redhat-linux-gnu' '--target=x86_64-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib64' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--cache-file=../config.cache' '--with-libdir=lib64' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d' '--disable-debug' '--with-pic' '--disable-rpath' '--without-pear' '--with-bz2' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-xpm-dir=/usr' '--enable-gd-native-ttf' '--with-t1lib=/usr' '--without-gdbm' '--with-gettext' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-pcre-regex=/usr' '--with-zlib' '--with-layout=GNU' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--with-kerberos' '--enable-ucd-snmp-hack' '--enable-shmop' '--enable-calendar' '--without-mime-magic' '--without-sqlite' '--with-libxml-dir=/usr' '--enable-xml' '--with-system-tzdata' '--with-apxs2=/usr/sbin/apxs' '--without-mysql' '--without-gd' '--disable-dom' '--disable-dba' '--without-unixODBC' '--disable-pdo' '--disable-xmlreader' '--disable-xmlwriter' '--disable-json' '--without-pspell' '--disable-wddx' '--without-curl' '--disable-posix' '--disable-sysvmsg' '--disable-sysvshm' '--disable-sysvsem' Server API Apache 2.0 Handler Virtual Directory Support disabled Configuration File (php.ini) Path /etc Loaded Configuration File /etc/php.ini Scan this dir for additional .ini files /etc/php.d additional .ini files parsed /etc/php.d/apc.ini, /etc/php.d/bcmath.ini, /etc/php.d/curl.ini, /etc/php.d/dbase.ini, /etc/php.d/dom.ini, /etc/php.d/gd.ini, /etc/php.d/imap.ini, /etc/php.d/ioncube-loader-5.2.ini, /etc/php.d/json.ini, /etc/php.d/ldap.ini, /etc/php.d/mbstring.ini, /etc/php.d/mysql.ini, /etc/php.d/mysqli.ini, /etc/php.d/pdo.ini, /etc/php.d/pdo_mysql.ini, /etc/php.d/pdo_sqlite.ini, /etc/php.d/posix.ini, /etc/php.d/sysvmsg.ini, /etc/php.d/sysvsem.ini, /etc/php.d/sysvshm.ini, /etc/php.d/wddx.ini, /etc/php.d/xmlreader.ini, /etc/php.d/xmlwriter.ini, /etc/php.d/xsl.ini, /etc/php.d/zip.ini PHP API 20041225 PHP Extension 20060613 Zend Extension 220060519 Debug Build no Thread Safety disabled Zend Memory Manager enabled IPv6 Support enabled Registered PHP Streams https, ftps, compress.zlib, compress.bzip2, php, file, data, http, ftp, zip Registered Stream Socket Transports tcp, udp, unix, udg, ssl, sslv3, sslv2, tls Registered Stream Filters zlib.*, bzip2.*, convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed This program makes use of the Zend Scripting Language Engine: Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies PHP Credits Configuration PHP CoreDirective Local Value Master Value allow_call_time_pass_reference Off Off allow_url_fopen On On allow_url_include Off Off always_populate_raw_post_data Off Off arg_separator.input & & arg_separator.output & & asp_tags Off Off auto_append_file no value no value auto_globals_jit On On auto_prepend_file no value no value browscap no value no value default_charset no value no value default_mimetype text/html text/html define_syslog_variables Off Off disable_classes no value no value disable_functions no value no value display_errors On Off display_startup_errors On Off doc_root no value no value docref_ext no value no value docref_root no value no value enable_dl On On error_append_string no value no value error_log no value no value error_prepend_string no value no value error_reporting 6143 6143 expose_php On On extension_dir /usr/lib64/php/modules /usr/lib64/php/modules file_uploads On On highlight.bg #FFFFFF #FFFFFF highlight.comment #FF8000 #FF8000 highlight.default #0000BB #0000BB highlight.html #000000 #000000 highlight.keyword #007700 #007700 highlight.string #DD0000 #DD0000 html_errors On On ignore_repeated_errors Off Off ignore_repeated_source Off Off ignore_user_abort Off Off implicit_flush Off Off include_path .: .: log_errors On On log_errors_max_len 1024 1024 magic_quotes_gpc Off Off magic_quotes_runtime Off Off magic_quotes_sybase Off Off mail.force_extra_parameters no value no value max_execution_time 120 120 max_file_uploads 20 20 max_input_nesting_level 64 64 max_input_time 600 600 memory_limit 256M 256M open_basedir /tmp:/var/www/vhosts no value output_buffering 4096 4096 output_handler no value no value post_max_size 12M 12M precision 14 14 realpath_cache_size 16K 16K realpath_cache_ttl 120 120 register_argc_argv Off Off register_globals Off Off register_long_arrays Off Off report_memleaks On On report_zend_debug On On safe_mode Off Off safe_mode_exec_dir no value no value safe_mode_gid Off Off safe_mode_include_dir no value no value sendmail_from no value no value sendmail_path /usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i serialize_precision 100 100 short_open_tag On On SMTP localhost localhost smtp_port 25 25 sql.safe_mode Off Off track_errors Off Off unserialize_callback_func no value no value upload_max_filesize 10M 10M upload_tmp_dir no value no value user_dir no value no value variables_order EGPCS EGPCS xmlrpc_error_number 0 0 xmlrpc_errors Off Off y2k_compliance On On zend.ze1_compatibility_mode Off Off apache2handlerApache Version Apache/2.2.15 (Fedora) Apache API Version 20051115 Hostname:Port yourdomain.ru:80 User/Group apache(48)/48 Max Requests Per Child: 100 - Keep Alive: off - Max Per Connection: 100 Timeouts Connection: 120 - Keep-Alive: 15 Virtual Server Yes Server Root /etc/httpd Loaded Modules core prefork http_core mod_so mod_auth_basic mod_auth_digest mod_authn_file mod_authn_alias mod_authn_anon mod_authn_dbm mod_authn_default mod_authz_host mod_authz_user mod_authz_owner mod_authz_groupfile mod_authz_dbm mod_authz_default util_ldap mod_authnz_ldap mod_include mod_log_config mod_logio mod_env mod_ext_filter mod_mime_magic mod_expires mod_deflate mod_headers mod_usertrack mod_setenvif mod_mime mod_dav mod_status mod_autoindex mod_info mod_dav_fs mod_vhost_alias mod_negotiation mod_dir mod_actions mod_speling mod_userdir mod_alias mod_rewrite mod_proxy mod_proxy_balancer mod_proxy_ftp mod_proxy_http mod_proxy_connect mod_cache mod_suexec mod_disk_cache mod_cgi mod_ssl mod_bw mod_fcgid mod_jk mod_dnssd mod_perl mod_php5 mod_proxy_ajp mod_python Directive Local Value Master Value engine 1 1 last_modified 0 0 xbithack 0 0 Apache EnvironmentVariable Value PERL5LIB /usr/share/awstats/lib:/usr/share/awstats/plugins APPLICATION_ENV production HTTP_USER_AGENT Opera/9.80 (Windows NT 5.1; MRA 6.1 (build 6648)) Presto/2.12.388 Version/12.14 HTTP_HOST yourdomain.ru HTTP_ACCEPT text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/webp, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1 HTTP_ACCEPT_LANGUAGE ru-RU,ru;q=0.9,en;q=0.8 HTTP_ACCEPT_ENCODING gzip, deflate HTTP_CONNECTION Keep-Alive PATH /sbin:/usr/sbin:/bin:/usr/bin SERVER_SIGNATURE <address>Apache/2.2.15 (Fedora) Server at yourdomain.ru Port 80</address> SERVER_SOFTWARE Apache/2.2.15 (Fedora) SERVER_NAME yourdomain.ru SERVER_ADDR 83.69.139.145 SERVER_PORT 80 REMOTE_ADDR 213.230.92.155 DOCUMENT_ROOT /var/www/vhosts/yourdomain.ru/httpdocs REMOTE_PORT 36235 GATEWAY_INTERFACE CGI/1.1 SERVER_PROTOCOL HTTP/1.1 REQUEST_METHOD GET QUERY_STRING no value bcmathBCMath support enabled bz2BZip2 Support Enabled Stream Wrapper support compress.bz2:// Stream Filter support bzip2.decompress, bzip2.compress BZip2 Version 1.0.5, 10-Dec-2007 calendarCalendar support enabled ctypectype functions enabled curlcURL support enabled cURL Information libcurl/7.19.7 NSS/3.12.6.2 zlib/1.2.3 libidn/1.9 libssh2/1.2.4 datedate/time support enabled "Olson" Timezone Database Version 0.system Timezone Database internal Default timezone Asia/Samarkand Directive Local Value Master Value date.default_latitude 31.7667 31.7667 date.default_longitude 35.2333 35.2333 date.sunrise_zenith 90.583333 90.583333 date.sunset_zenith 90.583333 90.583333 date.timezone no value no value domDOM/XML enabled DOM/XML API Version 20031129 libxml Version 2.7.6 HTML Support enabled XPath Support enabled XPointer Support enabled Schema Support enabled RelaxNG Support enabled exifEXIF Support enabled EXIF Version 1.4 $Id: exif.c 293036 2010-01-03 09:23:27Z sebastian $ Supported EXIF Version 0220 Supported filetypes JPEG,TIFF filterInput Validation and Filtering enabled Revision $Revision: 293051 $ Directive Local Value Master Value filter.default unsafe_raw unsafe_raw filter.default_flags no value no value ftpFTP support enabled gdGD Support enabled GD Version bundled (2.0.34 compatible) FreeType Support enabled FreeType Linkage with freetype FreeType Version 2.3.9 T1Lib Support enabled GIF Read Support enabled GIF Create Support enabled JPG Support enabled PNG Support enabled WBMP Support enabled XPM Support enabled XBM Support enabled gettextGetText Support enabled gmpgmp support enabled GMP version 4.2.4 hashhash support enabled Hashing Engines md2 md4 md5 sha1 sha256 sha384 sha512 ripemd128 ripemd160 ripemd256 ripemd320 whirlpool tiger128,3 tiger160,3 tiger192,3 tiger128,4 tiger160,4 tiger192,4 snefru gost adler32 crc32 crc32b haval128,3 haval160,3 haval192,3 haval224,3 haval256,3 haval128,4 haval160,4 haval192,4 haval224,4 haval256,4 haval128,5 haval160,5 haval192,5 haval224,5 haval256,5 iconviconv support enabled iconv implementation glibc iconv library version 2.10.2 Directive Local Value Master Value iconv.input_encoding ISO-8859-1 ISO-8859-1 iconv.internal_encoding ISO-8859-1 ISO-8859-1 iconv.output_encoding ISO-8859-1 ISO-8859-1 imapIMAP c-Client Version 2007e SSL Support enabled Kerberos Support enabled jsonjson support enabled json version 1.2.1 ldapLDAP Support enabled RCS Version $Id: ldap.c 293036 2010-01-03 09:23:27Z sebastian $ Total Links 0/unlimited API Version 3001 Vendor Name OpenLDAP Vendor Version 20415 SASL Support Enabled libxmllibXML support active libXML Version 2.7.6 libXML streams enabled mbstringMultibyte Support enabled Multibyte string engine libmbfl Multibyte (japanese) regex support enabled Multibyte regex (oniguruma) version 4.4.4 Multibyte regex (oniguruma) backtrack check On mbstring extension makes use of "streamable kanji code filter and converter", which is distributed under the GNU Lesser General Public License version 2.1. Directive Local Value Master Value mbstring.detect_order no value no value mbstring.encoding_translation Off Off mbstring.func_overload 0 0 mbstring.http_input pass pass mbstring.http_output pass pass mbstring.internal_encoding no value no value mbstring.language neutral neutral mbstring.strict_detection Off Off mbstring.substitute_character no value no value mysqlMySQL Support enabled Active Persistent Links 0 Active Links 0 Client API version 5.1.47 MYSQL_MODULE_TYPE external MYSQL_SOCKET /var/lib/mysql/mysql.sock MYSQL_INCLUDE -I/usr/include/mysql MYSQL_LIBS -L/usr/lib64/mysql -lmysqlclient Directive Local Value Master Value mysql.allow_persistent On On mysql.connect_timeout 60 60 mysql.default_host no value no value mysql.default_password no value no value mysql.default_port no value no value mysql.default_socket no value no value mysql.default_user no value no value mysql.max_links Unlimited Unlimited mysql.max_persistent Unlimited Unlimited mysql.trace_mode Off Off mysqliMysqlI Support enabled Client API library version 5.1.47 Client API header version 5.1.42 MYSQLI_SOCKET /var/lib/mysql/mysql.sock Directive Local Value Master Value mysqli.default_host no value no value mysqli.default_port 3306 3306 mysqli.default_pw no value no value mysqli.default_socket no value no value mysqli.default_user no value no value mysqli.max_links Unlimited Unlimited mysqli.reconnect Off Off opensslOpenSSL support enabled OpenSSL Version OpenSSL 0.9.8k-fips 25 Mar 2009 pcrePCRE (Perl Compatible Regular Expressions) Support enabled PCRE Library Version 7.8 2008-09-05 Directive Local Value Master Value pcre.backtrack_limit 100000 100000 pcre.recursion_limit 100000 100000 PDOPDO support enabled PDO drivers mysql, sqlite pdo_mysqlPDO Driver for MySQL, client library version 5.1.47 pdo_sqlitePDO Driver for SQLite 3.x enabled PECL Module version 1.0.1 $Id: pdo_sqlite.c 293036 2010-01-03 09:23:27Z sebastian $ SQLite Library 3.6.20 posixRevision $Revision: 293036 $ ReflectionReflection enabled Version $Id: php_reflection.c 293850 2010-01-22 14:21:17Z jani $ sessionSession Support enabled Registered save handlers files user Registered serializer handlers php php_binary wddx Directive Local Value Master Value session.auto_start Off Off session.bug_compat_42 Off Off session.bug_compat_warn On On session.cache_expire 180 180 session.cache_limiter nocache nocache session.cookie_domain no value no value session.cookie_httponly Off Off session.cookie_lifetime 0 0 session.cookie_path / / session.cookie_secure Off Off session.entropy_file no value no value session.entropy_length 0 0 session.gc_divisor 1000 1000 session.gc_maxlifetime 1440 1440 session.gc_probability 1 1 session.hash_bits_per_character 5 5 session.hash_function 0 0 session.name PHPSESSID PHPSESSID session.referer_check no value no value session.save_handler files files session.save_path /var/lib/php/session /var/lib/php/session session.serialize_handler php php session.use_cookies On On session.use_only_cookies Off Off session.use_trans_sid 0 0 shmopshmop support enabled SimpleXMLSimplexml support enabled Revision $Revision: 293036 $ Schema support enabled socketsSockets Support enabled SPLSPL support enabled Interfaces Countable, OuterIterator, RecursiveIterator, SeekableIterator, SplObserver, SplSubject Classes AppendIterator, ArrayIterator, ArrayObject, BadFunctionCallException, BadMethodCallException, CachingIterator, DirectoryIterator, DomainException, EmptyIterator, FilterIterator, InfiniteIterator, InvalidArgumentException, IteratorIterator, LengthException, LimitIterator, LogicException, NoRewindIterator, OutOfBoundsException, OutOfRangeException, OverflowException, ParentIterator, RangeException, RecursiveArrayIterator, RecursiveCachingIterator, RecursiveDirectoryIterator, RecursiveFilterIterator, RecursiveIteratorIterator, RecursiveRegexIterator, RegexIterator, RuntimeException, SimpleXMLIterator, SplFileInfo, SplFileObject, SplObjectStorage, SplTempFileObject, UnderflowException, UnexpectedValueException standardRegex Library Bundled library enabled Dynamic Library Support enabled Path to sendmail /usr/sbin/sendmail -t -i Directive Local Value Master Value assert.active 1 1 assert.bail 0 0 assert.callback no value no value assert.quiet_eval 0 0 assert.warning 1 1 auto_detect_line_endings 0 0 default_socket_timeout 60 60 safe_mode_allowed_env_vars PHP_ PHP_ safe_mode_protected_env_vars LD_LIBRARY_PATH LD_LIBRARY_PATH url_rewriter.tags a=href,area=href,frame=src,input=src,form=fakeentry a=href,area=href,frame=src,input=src,form=fakeentry user_agent no value no value sysvmsgsysvmsg support enabled Revision $Revision: 293036 $ tokenizerTokenizer Support enabled wddxWDDX Support enabled WDDX Session Serializer enabled xmlXML Support active XML Namespace Support active libxml2 Version 2.7.6 xmlreaderXMLReader enabled xmlwriterXMLWriter enabled xslXSL enabled libxslt Version 1.1.26 libxslt compiled against libxml Version 2.7.3 EXSLT enabled libexslt Version 1.1.26 zipZip enabled Extension Version $Id: php_zip.c 293036 2010-01-03 09:23:27Z sebastian $ Zip version 1.8.11 Libzip version 0.9.0 zlibZLib Support enabled Stream Wrapper support compress.zlib:// Stream Filter support zlib.inflate, zlib.deflate Compiled Version 1.2.3 Linked Version 1.2.3 Directive Local Value Master Value zlib.output_compression Off Off zlib.output_compression_level -1 -1 zlib.output_handler no value no value Additional ModulesModule Name dbase sysvsem sysvshm EnvironmentVariable Value TERM linux PATH /sbin:/usr/sbin:/bin:/usr/bin runlevel 3 RUNLEVEL 3 UPSTART_EVENT runlevel LANGSH_SOURCED 1 PWD / LANG C previous N PREVLEVEL N CONSOLETYPE vt SHLVL 3 UPSTART_JOB rc3 UPSTART_JOB_ID 13 _ /usr/sbin/httpd PHP VariablesVariable Value _REQUEST["myc"] 20 _REQUEST["bik"] 1 _REQUEST["panel_voteState"] expanded _REQUEST["panel_top25State"] expanded _REQUEST["PHPSESSID"] o6dv5vtc2mebl1n9golof7jji6 _REQUEST["smart_top"] 1 _REQUEST["_pk_id_1_107e"] 53ea650b8ca68413.1376303451.30.1376835872.1376832525. _REQUEST["_pk_ses_1_107e"] * _REQUEST["_ym_visorc"] w _SERVER["PERL5LIB"] /usr/share/awstats/lib:/usr/share/awstats/plugins _SERVER["APPLICATION_ENV"] production _SERVER["HTTP_USER_AGENT"] Opera/9.80 (Windows NT 5.1; MRA 6.1 (build 6648)) Presto/2.12.388 Version/12.14 _SERVER["HTTP_HOST"] yourdomain.ru _SERVER["HTTP_ACCEPT"] text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/webp, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1 _SERVER["HTTP_ACCEPT_LANGUAGE"] ru-RU,ru;q=0.9,en;q=0.8 _SERVER["HTTP_ACCEPT_ENCODING"] gzip, deflate _SERVER["HTTP_COOKIE"] myc=20; bik=1; _SERVER["HTTP_CONNECTION"] Keep-Alive _SERVER["PATH"] /sbin:/usr/sbin:/bin:/usr/bin _SERVER["SERVER_SIGNATURE"] <address>Apache/2.2.15 (Fedora) Server at yourdomain.ru Port 80</address> _SERVER["SERVER_SOFTWARE"] Apache/2.2.15 (Fedora) _SERVER["SERVER_NAME"] yourdomain.ru _SERVER["SERVER_PORT"] 80 _SERVER["DOCUMENT_ROOT"] /var/www/vhosts/yourdomain.ru/httpdocs _SERVER["REMOTE_PORT"] 36235 _SERVER["GATEWAY_INTERFACE"] CGI/1.1 _SERVER["SERVER_PROTOCOL"] HTTP/1.1 _SERVER["REQUEST_METHOD"] GET _SERVER["QUERY_STRING"] no value _SERVER["REQUEST_TIME"] 1376834874 _ENV["TERM"] linux _ENV["PATH"] /sbin:/usr/sbin:/bin:/usr/bin _ENV["runlevel"] 3 _ENV["RUNLEVEL"] 3 _ENV["UPSTART_EVENT"] runlevel _ENV["LANGSH_SOURCED"] 1 _ENV["PWD"] / _ENV["LANG"] C _ENV["previous"] N _ENV["PREVLEVEL"] N _ENV["CONSOLETYPE"] vt _ENV["SHLVL"] 3 _ENV["UPSTART_JOB"] rc3 _ENV["UPSTART_JOB_ID"] 13 _ENV["_"] /usr/sbin/httpd
Скопировал .htaccess со след. содержанием: Код (Text): # Protect files and directories from prying eyes. <FilesMatch "\.(engine|inc|info|install|make|module|profile|test|po|sh|.*sql|theme|tpl(\.php)?|xtmpl)$|^(\..*|Entries.*|Repository|Root|Tag|Template)$"> Order allow,deny </FilesMatch> # Don't show directory listings for URLs which map to a directory. Options -Indexes # Follow symbolic links in this directory. Options +FollowSymLinks # Make Drupal handle any 404 errors. ErrorDocument 404 /index.php # Set the default handler. DirectoryIndex index.php index.html index.htm # PHP 5, Apache 1 and 2. <IfModule mod_php5.c> php_flag magic_quotes_gpc off php_flag magic_quotes_sybase off php_flag register_globals off php_flag session.auto_start off php_value mbstring.http_input pass php_value mbstring.http_output pass php_flag mbstring.encoding_translation off </IfModule> # Requires mod_expires to be enabled. <IfModule mod_expires.c> # Enable expirations. ExpiresActive On # Cache all files for 2 weeks after access (A). ExpiresDefault A1209600 <FilesMatch \.php$> # Do not allow PHP scripts to be cached unless they explicitly send cache # headers themselves. Otherwise all scripts would have to overwrite the # headers set by mod_expires if they want another caching behavior. This may # fail if an error occurs early in the bootstrap process, and it may cause # problems if a non-Drupal PHP file is installed in a subdirectory. ExpiresActive Off </FilesMatch> </IfModule> # Various rewrite rules. <IfModule mod_rewrite.c> RewriteEngine on # Block access to "hidden" directories whose names begin with a period. This # includes directories used by version control systems such as Subversion or # Git to store control files. Files whose names begin with a period, as well # as the control files used by CVS, are protected by the FilesMatch directive # above. # # NOTE: This only works when mod_rewrite is loaded. Without mod_rewrite, it is # not possible to block access to entire directories from .htaccess, because # <DirectoryMatch> is not allowed here. # # If you do not have mod_rewrite installed, you should remove these # directories from your webroot or otherwise protect them from being # downloaded. RewriteRule "(^|/)\." - [F] # If your site can be accessed both with and without the 'www.' prefix, you # can use one of the following settings to redirect users to your preferred # URL, either WITH or WITHOUT the 'www.' prefix. Choose ONLY one option: # # To redirect all users to access the site WITH the 'www.' prefix, # (http://example.com/... will be redirected to http://www.example.com/...) # uncomment the following: # RewriteCond %{HTTP_HOST} !^www\. [NC] # RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301] # # To redirect all users to access the site WITHOUT the 'www.' prefix, # (http://www.example.com/... will be redirected to http://example.com/...) # uncomment the following: # RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC] # RewriteRule ^ http://%1%{REQUEST_URI} [L,R=301] # Modify the RewriteBase if you are using Drupal in a subdirectory or in a # VirtualDocumentRoot and the rewrite rules are not working properly. # For example if your site is at http://example.com/drupal uncomment and # modify the following line: # RewriteBase /drupal # # If your site is running in a VirtualDocumentRoot at http://example.com/, # uncomment the following line: # RewriteBase / # Pass all requests not referring directly to files in the filesystem to # index.php. Clean URLs are handled in drupal_environment_initialize(). RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !=/favicon.ico RewriteRule ^ index.php [L] # Rules to correctly serve gzip compressed CSS and JS files. # Requires both mod_rewrite and mod_headers to be enabled. <IfModule mod_headers.c> # Serve gzip compressed CSS files if they exist and the client accepts gzip. RewriteCond %{HTTP:Accept-encoding} gzip RewriteCond %{REQUEST_FILENAME}\.gz -s RewriteRule ^(.*)\.css $1\.css\.gz [QSA] # Serve gzip compressed JS files if they exist and the client accepts gzip. RewriteCond %{HTTP:Accept-encoding} gzip RewriteCond %{REQUEST_FILENAME}\.gz -s RewriteRule ^(.*)\.js $1\.js\.gz [QSA] # Serve correct content types, and prevent mod_deflate double gzip. RewriteRule \.css\.gz$ - [T=text/css,E=no-gzip] RewriteRule \.js\.gz$ - [T=text/javascript,E=no-gzip] <FilesMatch "(\.js\.gz|\.css\.gz)$"> # Serve correct encoding type. Header set Content-Encoding gzip # Force proxies to cache gzipped & non-gzipped css/js files separately. Header append Vary Accept-Encoding </FilesMatch> </IfModule> </IfModule> Но ничего не помогло
<IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !=/favicon.ico RewriteRule ^ index.php [L] </IfModule> сотри всё, вставь это
Все проблему понял модуль mod_rewrite не установлен похоже Все кода на Rewrite приводят никуда для проверки проверил использовав это http://www.webasyst.ru/support/help/general-check-modrewrite.html Результатов 0 кривой хостинг как всегда в общем токо не понятно почему он значится в Loaded Modules Код (Text): Loaded Modules core prefork http_core mod_so mod_auth_basic mod_auth_digest mod_authn_file mod_authn_alias mod_authn_anon mod_authn_dbm mod_authn_default mod_authz_host mod_authz_user mod_authz_owner mod_authz_groupfile mod_authz_dbm mod_authz_default util_ldap mod_authnz_ldap mod_include mod_log_config mod_logio mod_env mod_ext_filter mod_mime_magic mod_expires mod_deflate mod_headers mod_usertrack mod_setenvif mod_mime mod_dav mod_status mod_autoindex mod_info mod_dav_fs mod_vhost_alias mod_negotiation mod_dir mod_actions mod_speling mod_userdir mod_alias mod_rewrite mod_proxy mod_proxy_balancer mod_proxy_ftp mod_proxy_http mod_proxy_connect mod_cache mod_suexec mod_disk_cache mod_cgi mod_ssl mod_bw mod_fcgid mod_jk mod_dnssd mod_perl mod_php5 mod_proxy_ajp mod_python теперь автоматически появляется новый вопрос можно ли как нибудь реализовать это на Php или CURL
ну нет. надо либо рерайт в апаче, либо рерайт в нгинксе. а вы уверены, что вы сделали всё как ленин завещал?
Да сделал все по инструкции любое что напишу в конструкции rewrite не срабатывает сам htacess подерживается
Разобрался немного с багом Так небольшой просвет обнаружил если написать rewratelog выхожу на ошибку 500 Код (Text): Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Как посмотреть логи этого модуля rewrite и можно ли вообще записать все логи в файл на сервере (acess_log в том числе)
ну они где-то должны быть в доступном месте.обычно они где-то выше корня сайта и доступны по фтп. можно спросить у саппорта. если это не впс, где ты сам ставишь сервер и прочее.
Вообщем та так должно быть Ну у меня совсем по другому Стоит plesk panel И все адреса выглядят так /var/www/vhosts/site.ru/ /var/www/vhosts/сайт.рф/ и т.д. в папках site.ru и сайт.рф можно разметить только папки и файл .htaccess все файлы автоматичести стираются приходится создавать папки помимо этого в site.ru и сайт.рф лежит папка log но так как я выбрал дешеввый хостинг (тарифный план) я к нему доступа не имею вопрос состоит в том как сделать в другой папке логи которые я увижу В обшем то мне это необходимо чтобы узнать причину отказа mod_rewrite
Да уже спрашивал сказали или бери дорогой тарифный план или купи у нас домен или в крайняк оформи у нас хостинг на 2 года а иначе через язык php и htaces достать нельзя
И снова я тут могу сказать, что знаю один хороший дешевый хостинг(4 бакса за полгода), где таких проблем нет. С php, MySQL, Perl, SSH и прочей требухой, включая собственный php.ini - Туц. Мне там всего один раз предложили "купить VPS", когда я спросил, а можно ли из-под рута исполнить вот-такой-то скрипт для перла? Мол нужно очень. Саппорт ответил, мол, пардон, задача экзотичная, рут от сервака, на котором висит куча аккаунтов мы дать не можем по понятным причинам. Если край надо - тут только сервак если свой заказывать. Но никакого вымогательства, мол "или плати больше, или ходи с отрезанными яйцами".