//
you're reading...
IT-Center, PHP, Web Based

Setting .httaccess in Wamp

You must enable mod_rewrite before you can use it. If you want to enable it in httpd.conf, then use

Options FollowSymLinks Fileinfo
 or
 Options SymLinksIfOwnerMatch Fileinfo

If you wish to enable mod_rewrite at the .htaccess level (i.e. only in certain (sub)directories within each vHost and not for all (sub)directories of each vHost), then you must set allowOverride Options (at a minimum) in httpd.conf, and place one of

Options +FollowSymLinks
 or
 Options +SymLinksIfOwnerMatch

in the .htaccess file(s) to enable mod_rewrite.

In the latter case, it is usual to set Options Fileinfo (and any others) in httpd.conf, and then set Options +FollowSymLinks in .htaccess along with +/-indexes, +/-MultiViews, etc. as desired. Take a look at the +/- add/subtract option syntax versus fixed Option declarations — You’ll likely want to establish fixed baseline Options in httpd.conf, and then use the add/subtract syntax at the .htaccess level. For security, don’t enable any Option unless you’re sure you need it.

If you did not get any clue what the crap was just above, just ignore it and do the following.

Go to Wamp -> Left click at icon in the taskbar -> Click Config files -> httpd.conf
A file will be opened.
Search rewrite in it.
You will get:

#LoadModule rewrite_module modules/mod_rewrite.so

Remove hash from the beginning (Uncomment it) e.g.

LoadModule rewrite_module modules/mod_rewrite.so

Save the file. Mod Rewriting is enabled.

Open Notepad or Textpad or Dtreamweaver.
Create new file.
Save it as .htaccess in the required directory or root directory of website.
Copy and paste the following in it.

Options +FollowSymLinks
RewriteEngine On

And you are done. Use this .htacces file now to code onward and it will work.
The above, when you uncommented the rewrite thing, you enabled mod-rewrite in wamp.

Read more: http://www.phpmagicbook.com/allow-htaccess-and-mod-rewrite-in-wamp/#ixzz1pjn3gtSl
http://www.phpmagicbook.com/allow-htaccess-and-mod-rewrite-in-wamp/
http://www.minitek.gr/tutorials/joomla-16-tutorials/development-tutorials/item/234-how-to-use-htaccess-in-wamp.html
http://funk.randomecho.com/soul/wamp-setup-and-configuration-tips.php

About berbagisolusi

Berbagi merupakan sebuah bentuk simbol keikhlasan untuk membantu dan menolong, sedangkan solusi adalah cara menyelesaikan masalah. Setiap manusia pasti mengalami masalah, tetapi kita tidak perlu mengalami masalah yang sama jika orang lain pernah mengalami dan kita tahu hal tersebut.

Discussion

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Enter your email address to follow this blog and receive notifications of new posts by email.

Join 9 other followers

March 2012
M T W T F S S
« Feb   Apr »
 1234
567891011
12131415161718
19202122232425
262728293031  

Archives

Web Statistic

Blog Stats

  • 149,551 hits
%d bloggers like this: