ShirazOnline
نمایش نتایج: از شماره 1 تا 1 , از مجموع 1

موضوع: Enable mod_rewrite on Apache and check it to work

  1. #1
    RezaBehroozi admin آواتار ها
    تاریخ عضویت
    Jan 1970
    محل سکونت
    Iran/Shiraz
    نوشته ها
    11,187
    تشکرها / پسندها

    پیش فرض Enable mod_rewrite on Apache and check it to work

    Introduction to mod_rewrite and Apache

    Mod_rewrite allows you to rewrite a webpage's url on the fly, and you can rewrite the url to almost anything. It has a lot of uses everything from redirecting multiple WebPages to a new domain without actually changing the title, to making dynamic pages appear static.
    However, it is somewhat complicated to learn, and if you make a mistake its also possible to really mess-up your server and create endless loops. Need less to say I don't recommend messing around with this on you live site. The solution, if you want to mess around and experiment with it is, to run a test server on your own computer for test purposes.
    My own server ?

    Apache by default comes with the mod_rewrite module installed but not enabled. So if you have Apache installed on your home computer chances are that all you have to do is enable mod_rewrite (explained later in this tutorial).
    If you don't have Apache installed, you can install it yourself, or get one of the [فقط اعضا می توانند لینک ها را مشاهده کنند برای ثبت نام اینجا را کلیک کنید]and install it yourself fairly easily. Most (if not all) of these bundles use the default settings, and mod_rewrite is not enabled by default, so come back and read this tutorial once you are done installing apache web server.

    Enable mod_rewrite
    1. Find the httpd.conf file (usually you will find it in a folder called conf, config or something along those lines)
    2. Inside the httpd.conf file uncomment the line LoadModule rewrite_module modules/mod_rewrite.so (remove the pound '#' sign from in front of the line)
    3. Also find the line ClearModuleList is uncommented then find and make sure that the line AddModule mod_rewrite.c is not commented out.
    Check to see if mod_rewrite is enabled

    There are several ways to check if its working, I will try to show you the simplest method, Create a .htaccess file (a text file named .htaccess) with the following code in it
    کد:
    Options +FollowSymLinks RewriteEngine On
    Save the file to a subdirectory of your main site something like this
    /rewrite-testfolder/.htaccess
    Now attempt to browse to the subdirectory ([فقط اعضا می توانند لینک ها را مشاهده کنند برای ثبت نام اینجا را کلیک کنید]. One of two things could happen
    - No errors Congrats mod_rewrite engine is now enabled.
    - 500, Internal Server Error If you get this message then mod_rewrite was not installed/enabled on your computer.


    Now that you have your server set up correctly, you can start learning about and experimenting with the wonderful world of mod_rewrite


    کد:
    http://www.tutorio.com/tutorial/enable-mod-rewrite-on-apache
    [فقط اعضا می توانند لینک ها را مشاهده کنند برای ثبت نام اینجا را کلیک کنید]

  2. # ADS
    Circuit advertisement
    تاریخ عضویت
    Always
    محل سکونت
    Advertising world
    نوشته ها
    Many
    mftmirdamad
     

اطلاعات موضوع

کاربرانی که در حال مشاهده این موضوع هستند

در حال حاضر 1 کاربر در حال مشاهده این موضوع است. (0 کاربران و 1 مهمان ها)

موضوعات مشابه

  1. Apache LDAP Authentication
    توسط patris_70 در انجمن Linux
    پاسخ ها: 0
    آخرين نوشته: 2010/07/07, 06:40 PM
  2. How To Install Apache Tomcat with IIS 6.0
    توسط patris_70 در انجمن IIS
    پاسخ ها: 0
    آخرين نوشته: 2010/07/05, 10:44 PM
  3. Linux E-mail: Providing Webmail Access
    توسط patris_70 در انجمن Linux
    پاسخ ها: 1
    آخرين نوشته: 2010/07/04, 01:28 AM
  4. QMail+Vpopmail+MySQL+MailScanner+ClamAV+SpamAssass in
    توسط patris_70 در انجمن Linux
    پاسخ ها: 0
    آخرين نوشته: 2010/05/06, 12:49 AM
  5. Apache PHP and Oracle Howto
    توسط patris_70 در انجمن Linux
    پاسخ ها: 0
    آخرين نوشته: 2010/05/06, 12:45 AM

علاقه مندی ها (Bookmarks)

علاقه مندی ها (Bookmarks)

مجوز های ارسال و ویرایش

  • شما نمیتوانید موضوع جدیدی ارسال کنید
  • شما امکان ارسال پاسخ را ندارید
  • شما نمیتوانید فایل پیوست کنید.
  • شما نمیتوانید پست های خود را ویرایش کنید
  •