/    Sign up×
Community /Pin to ProfileBookmark

hide the id extension

Hello

I want to hide the id extension: [U]page.php[COLOR=”Red”]?year=1[/COLOR][/U]
in the browser url to show something a bit more freindly like: [U]page.php[COLOR=”red”]/year1[/COLOR][/U]

I heard that it is better for seo practice and search engines and that it is just a little more secure.

I have done a big search on the web about this. Time and time again it is mentioned to use .htaccess. My website is hosted for free and they do not allow me to change anything with .htaccess.

Is there another way to do this?

to post a comment
PHP

2 Comments(s)

Copy linkTweet thisAlerts:
@MindzaiMar 10.2009 — You could route all of your traffic through a single controller script which examines the urls and dispatches requests accordingly, but without mod_rewrite you are going to have to accept some level of compromise, ie URLs like domain.com/index.php/my/route/to/file.
Copy linkTweet thisAlerts:
@pheauthorMar 10.2009 — I still want the page to display, so as long as I don't redirect the page I will be happy to try it out.

Are you talking about using javascript or php?

I am not too concerned about the security as the sensitive pages are protected. I would just like to have a clean looking and search freindly url.
×

Success!

Help @phe spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...