سلام
كنترل پنل من direct admin هست
و فايل .htaccess رو توي رووت سايت ندارم..
از اين مطالبي هم كه در رابطه با فعال كردن اين ماژول گفتين، يه جورايي سر در نياوردم!!!
لطفا با توجه به اين كه فايل .htaccess رو ندارم، در مورد چگونگي ايجاد اوون و اينكه براي فعال كردن اين ماژووول، فايل .htaccess من بايد در نهايت به چه شكل باشه و محتواش چي باشه
راهنماييم كنين...!!!
***خيلي خيلي ممنون ميشم***
کد:
فعال کردن Mod Rewrite با .htaccess
خوب سومین کاری که ما میکنیم باید Mod Rewrite با .htaccess فعال کنیم!
برای فعال کردن آن کافی دستور زیر را وارد کنید :
# a2enmod rewrite
Once you run this command, apache will tell you that this rewrite module is enabled. You can find mod_rewrite enabled and show up in your test.php file.
I often experienced
page not found 404 error with
debian/ubuntu versions eventhough your apache runs with mod-rewrite. To fix this, you will need to edit the following file to make some changes.
nano /etc/apache2/sites-enabled/000-default
متن های زیر را پیدا کنید و AllowOverride را به All تغییر دهید ...
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
# Uncomment this directive is you want to see apache2's
# default start page (in /apache2-default) when you go to /
#RedirectMatch ^/$ /apache2-default/
</Directory>
حال فایل .htaccess خود را آپلود کنید و سپس آپاچی خود را به وسیله دستور زیر رستارت کنید:
/etc/init.d/apache2 restart