Jump to content
xisto Community
iGuest

Remove Extention

Recommended Posts

You can't alter the url in the address bar with Javascript. You have to do it from the server, the '.htaccess' file may help you. If you don't want to deal with difficult codes like Apache and url rewritting use to be, there is simple alternatives like renaming this webpages 'index.php' and put them in folders waring the name you want to show, then you can call just the folder url to see the page, like this one:

http://forums.xisto.com/no_longer_exists/

Edited by cityzen (see edit history)

Share this post


Link to post
Share on other sites

You are right Jhaslip,If I understood well, Guest_Suraj_ doesn't want to show the extension pages in the url of browsers. Instead of having :

 

 

yourwebsite.com/tag/mypage/ in the address bar, he wants something like: yourwebsite.com/tag/mypage/

 

If you create a folder called /mypage/ , move there the mypage.php and name it index.php, then you can show something like: yourwebsite.com/tag/mypage/

 

With a slash.That's a simple way. However, it's good only if you have just a few pages, otherwise I guess that some other methods may be more efficient.

 

Finally Url rewriting isn't that tricky either...

Share this post


Link to post
Share on other sites

That's right cityzen. And if you want to do that for the rest of the linked pages within the website then each page will be in a directory with an index.php or index.html in it but would be difficult and counter productive development wise. As for Url rewriting I'm not familiar with it. Maybe you could tell me more about it. Thanks

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | 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.