Search A2Z 24

Question : How to check whether mod_rewrite is enable on server?

Whenever I tried to access the URL, it returns 404 - not found page.

I put the same codes at another server which is running with Apache. It's working over there. So I guess, it's the .htaccess and mod_rewrite issue.

so I would like to know how can i check whether mod_rewrite is enable.I tried to check with phpinfo(), but no luck, i can't find mod_rewrite there.

Is there anyway to check ? Please help me out.

Thank you in advance.

asked October 4, 2015

1 Answers

Dispalying 1 to 1 of 1 |

To check if mod_rewrite module is enabled, create a new php file in your root folder of your WAMP/XAMPP server.

Enter the following


Access your created file from your browser.

Ctrl+F to open a search. Search for mod_rewrite. If it is enabled you see it as Loaded Modules

If not, open httpd.conf (Apache Config file) and look for the following line.

	#LoadModule rewrite_module modules/mod_rewrite.so

Remove the pound (#) sign at the start and save the this file.

Restart your apache server.

Access the same php file in your browser.

Search for mod_rewrite again.

You should be able to find it now.

See comments (0) | Comment
Answered 2 Years ago
Dispalying 1 to 1 of 1 |

Write your Answer write code <pre class="brush: xml">---code---</pre>

Login as a member to access answering block !! click-here

Reveal Modal Goodness

This is a default modal in all its glory, but any of the styles here can easily be changed in the CSS.

This is just a simple modal with the default styles, but any type of content can live in here. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi quis sem vel enim eleifend tristique. Etiam tincidunt faucibus pharetra.