limitphp Posted July 11, 2009 Share Posted July 11, 2009 "C:/wamp/www/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration" My .htaccess file is located in c:\wamp\www\ it is this: RewriteEngine on RewriteRule ^page([a-zA-Z0-9]*)/?$ index.php?currentpage=$1 [NC,L] RewriteRule ^artist/([a-zA-Z0-9-]+)/?$ artist.php?artistNameHash=$1 [NC,L] RewriteRule ^comments/([a-zA-Z0-9-]+)/([a-zA-Z0-9-]+)/?$ comment.php?artistNameHash=$1&songNameHash=$2 [NC,L] RewriteRule ^searchPlaylists/([a-zA-Z0-9-]+)/([a-zA-Z0-9-]+)/?$ searchPlaylists.php?artistNameHash=$1&songNameHash=$2 [NC,L] RewriteRule ^playlist/([a-zA-Z0-9-]+)/([a-zA-Z0-9-_]+)/?$ playlist.php?p_username=$1&nameHash=$2 [NC,L] RewriteRule ^user/([a-zA-Z0-9-]+)/?$ user.php?u_username=$1 [NC,L] Am I missing a line at the very beginning? I just installed wamp server 5.2.9-2 Is there something you are supposed to change to set it up? Quote Link to comment https://forums.phpfreaks.com/topic/165631-solved-error-in-wamp-server/ Share on other sites More sharing options...
wildteen88 Posted July 11, 2009 Share Posted July 11, 2009 You need to enable the Apache module called mod_rewrite. To do this left click WAMP tray icon and select Apache > Modules > rewrite module Quote Link to comment https://forums.phpfreaks.com/topic/165631-solved-error-in-wamp-server/#findComment-873709 Share on other sites More sharing options...
limitphp Posted July 11, 2009 Author Share Posted July 11, 2009 You need to enable the Apache module called mod_rewrite. To do this left click WAMP tray icon and select Apache > Modules > rewrite module thank you so much! Quote Link to comment https://forums.phpfreaks.com/topic/165631-solved-error-in-wamp-server/#findComment-873713 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.