Jump to content

removing .php extension in the address bar


Padzy

Recommended Posts

Hi, I'm looking to hide the .php file extension in the address bar of a browser. I.e www.stuff.com/about.php >> www.stuff.com/about

 

I'm fairly sure this can't be done (and don't really understand why anyone would want to) but never the less my superiors have asked me so I have to find an answer. If anyone can even give me a definite 'no' on this I'd appreciate it.

 

Thanks

 

Link to comment
Share on other sites

.. it's your about.php. not his.

 

Use mod_rewrite, this is what it's for.

I'm fairly sure this can't be done (and don't really understand why anyone would want to)

 

Anything can be done, you just have to try.

The reason why you'd WANT to is it looks a lot nicer, mostly. It's called clean urls. It's better for things like SEO.

Link to comment
Share on other sites

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.