However I’m not sure what this all affects, and everything i’m reading out there doesn’t really say. If i do this mod rewrite to remove all the file exensions from my site’s URLs, how does that affect my linking within pages? will i need to change all my links to just be http://www.example.com/test instead of http://www.example.com/test.php? or does it just change what the user sees, and not actually how the server is handling the request?
in the same turn, what happens if you remove all the file extensions, and someone bookmarks your page. or shares your link. or writes it down to come back later. if they just type in http://www.example.com/test will it take them to http://www.example.com/test.php or will they get an error?
My boss is discussing removing all the extensions to make our URLs more friendly, and I’m trying to gauge how much I’ll need to change to make this happen. Any help is appreciated. I’ve never worked with mod rewrite.
The url’s are just fine in the source with the extension attached. Mod Rewrite simply processes the url extension before it is served to the user…it doesn’t change the way the server actually handles the files…You should only remove the extensions from PHP files…