Jump to content

Recommended Posts

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.

Link to comment
https://forums.phpfreaks.com/topic/235154-htaccess-mod_rewrite-not-working/
Share on other sites

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.