Grow your CSS skills. Land your dream job.

Mod rewrite question

  • # June 27, 2012 at 12:58 pm

    So I’m pretty sure I found enough easy examples of how to change my url from to

    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 instead of 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 will it take them to 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.

    # June 28, 2012 at 6:36 am

    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…

    To break down your question….If a user types OR they should see it in their window as it should not ruin any links etc…

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.
