هزاره سوم
شنبه 15 شهریور 1393, 22:41 عصر
با سلام
من یه پروژه دارم که همراهش یه فایل .htaccess هست.
وقتی پوشه پروژه رو توی لوکال هاست گذاشتم و خواستم اجراش رو ببینم این خطا اومد :
Internal Server ErrorThe server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at admin@example.com to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
بعد فایل .htaccess رو دیدم و این کد ها توش بود وقتی همه رو کامنت کردم پروژه اجرا شد ولی به نوع آدرس دهی که قبلا شده بود نیاز دارم ( با این .htaccess بخش url مدیریت میشد ظاهرا)
# Necessary to prevent problems when using a controller named "index" and having a root index.php
# more here: http://httpd.apache.org/docs/2.2/content-negotiation.html
Options -MultiViews
# Activates URL rewriting (like myproject.com/controller/action/1/2/3)
RewriteEngine On
# Disallows others to look directly into /public/ folder
Options -Indexes
# When using the script within a sub-folder, put this path here, like /mysubfolder/
# If your app is in the root of your web folder, then leave it commented out
RewriteBase /php-mvc/
# General rewrite rules
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]
میشه بگید مشکل از کجاست؟؟ اگر فایل .htaccess درسته چرا روی سیستم من اون ارور رو میده؟
من یه پروژه دارم که همراهش یه فایل .htaccess هست.
وقتی پوشه پروژه رو توی لوکال هاست گذاشتم و خواستم اجراش رو ببینم این خطا اومد :
Internal Server ErrorThe server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at admin@example.com to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
بعد فایل .htaccess رو دیدم و این کد ها توش بود وقتی همه رو کامنت کردم پروژه اجرا شد ولی به نوع آدرس دهی که قبلا شده بود نیاز دارم ( با این .htaccess بخش url مدیریت میشد ظاهرا)
# Necessary to prevent problems when using a controller named "index" and having a root index.php
# more here: http://httpd.apache.org/docs/2.2/content-negotiation.html
Options -MultiViews
# Activates URL rewriting (like myproject.com/controller/action/1/2/3)
RewriteEngine On
# Disallows others to look directly into /public/ folder
Options -Indexes
# When using the script within a sub-folder, put this path here, like /mysubfolder/
# If your app is in the root of your web folder, then leave it commented out
RewriteBase /php-mvc/
# General rewrite rules
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]
میشه بگید مشکل از کجاست؟؟ اگر فایل .htaccess درسته چرا روی سیستم من اون ارور رو میده؟