Russia Posted April 30, 2011 Share Posted April 30, 2011 Hey guys I am in need of some help im trying to put a new extention on files that I have currently named .php I am trying to set them as .ws files instead. This is how my htaccess look like atm: RewriteEngine On RewriteRule ^([a-zA-Z0-9_'-]+)\.ws$ $1.php The thing is, it doesnt work, it keeps saying: Object not found! The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again. If you think this is a server error, please contact the webmaster. Error 404 localhost 04/30/11 00:56:48 Apache/2.2.13 (Win32) PHP/5.2.10 So I am in need of help, I am using EASYPHP, and edited httpc file or w/e that apache file is called and removed the # from the line to enable mod_rewrite, the problem is, it still doesnt work.. Also, I also only removed the comment from 1 line not 2, becasuse the 2nd line I have no uncomment is not there. Thanks for the upcoming help. Quote Link to comment Share on other sites More sharing options...
requinix Posted April 30, 2011 Share Posted April 30, 2011 Name your files .ws (with that actual extension, not .php) and set up Apache to serve them as PHP files. See how your installation does it (probably with an AddType/AddHandler) and duplicate it in your .htaccess for the .ws extension. Quote Link to comment Share on other sites More sharing options...
Russia Posted April 30, 2011 Author Share Posted April 30, 2011 what installation does it? Im making this from scratch and there was no .htaccess files. Also were would i edit apache so it works both with .ws and .php and other extentions? Quote Link to comment 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.