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.

This case is important when there is involvement of redirecting and the use of .htaccess file at localhost. e.g. When you use WordPress at localhost for development purpose, then this method to allow .htaccess file and mod-rewrite for wamp is good. Its GoOoOOoOooD!

  • Share/Bookmark

, , , ,

Leave a Review

Incoming Searches

wamp htaccess, localhost htaccess url rewrite, wamp not running htaccess in wamp, mod_rewrite wamp wordpress, htaccess setting in wamp, htaccess wamp, wamp htaccess tutorials, vhosts rewrite wamp, vhosts enable htaccess, using htaccess with wamp, url rewrite not working on wamp, setting up wamp to allow htaccess in subdirectories, setting for url rewriting wamp, root directory wamp htaccess, rewrite php class, rewrite no wamp, rewrite mode htaccess ignore one folder and all subdirectories, related:wordpress org/support/topic/313416 Oops! This link appears to be broke category wordpress, location of htaccess in wamp, wamp and htaccess, WAMP and htaccess file, wamp yurl rewrite with wordpress, wamp wordpress php not running, wamp wordpress create htaccess, wamp url rewrite htaccess, wamp rewrite urls enable, wamp remove htaccess, wamp mod_rewrite wordpress, wamp mod_rewrite enable, wamp mod rewrite, wamp htaccess url rewrite, wamp htaccess enabled, wamp htaccess directory, wamp htaccess and wordpress, wamp htacces, wamp enable htaccess, wordpress htaccess on localhost, httaccess url rewrite alow images to show, how to activate htaccess rewrites in wamp, how to activate htaccess in wamp, getting mod_rewrite htaccess to work with wamp, enabling htaccess in wamp, enable wamp vhosts, enable vhosts in wamp, enable mod_rewrite wamp for htaccess, enable mod_rewrite wamp, enable mod_rewrite on wamp, enable mod_rewrite htaccess vhosts conf, enable htaccess in wamp, enable htaccess file on wamp, AllowOverride wamp rewrite, allowoverride htaccess wamp, adding mod_rewrite to wamp, how to allow htaccess in wamp, how to enable htaccess in wamp, htaccess wordpress wamp, htaccess with modrewrite, htaccess rewrite url not working in wamp localhost, htaccess php includes wamp, HTACCESS PHP class, htaccess on wamp, htaccess not working wamp, htaccess not allow download image, htaccess localhost wordpress, htaccess in wamp file upload error, htaccess enable in wamp, htaccess alow, how to enable url rewriting using wamp, how to enable URL rewrite on WAMPserver, how to enable htaccess on wamp, activate htacces