-1

I have URL like :-

www.domainname.com/container.php?fun=contact

and

www.domainname.com/container.php?fun=page&view=eims

all my pages have title, Now i need to replace this link

www.domainname.com/container.php?fun=contact

and

www.domainname.com/container.php?fun=page&view=eims

to

www.domainname.com/post-title-for-page

What can i do?

2 Answers2

1

Hi and welcome to Stackoverflow!

I think that you are reffering to the HTML title tag. All you have to do is add

<title>your title goes here</title>

to the head of your HTML document.

Read more here

After the OP edited his questions, it became clear he reffers to URL rewrite.

Akis's answer covers that.

Community
  • 1
  • 1
Traian Tatic
  • 681
  • 5
  • 18
0

If i understood correctly by reading this "...it must be see in URL the page title not..." you want the url to have this form:

    www.domainname.com/contact
    //if we suppose that contact is the page title of your contact page 

instead of this:

    www.domainname.com/container.php?fun=contact

If you are NOT using any cms for your site you can see here what you can do, but if you are using any cms i am sure there will be "easier" way.

Community
  • 1
  • 1
Akis
  • 193
  • 10
  • He's reffering to the title tag; if none defined, it will display the URL. – Traian Tatic Sep 08 '14 at 06:29
  • But he is saying that he wants to display IN url the page title. "it must be see in URL the page title not [url]"! – Akis Sep 08 '14 at 06:31
  • That's not possible :D His English is not that good either so we should better wait for the OP to clear things up. – Traian Tatic Sep 08 '14 at 06:35
  • Of course its possible follow the link i gave the php way the first answer propose. – Akis Sep 08 '14 at 06:39
  • Having sef links is not the same as having the page title instead of the URL, lol. Anyway, he edited it and cleared things up. You were right :) – Traian Tatic Sep 08 '14 at 06:41
  • 1
    Of course its not the same but you always can pass the page title as parameter in the rewriter you will build. – Akis Sep 08 '14 at 06:56
  • I don't see any solution with my URL – Khalid Ahmed Sep 08 '14 at 07:08
  • i have in my answer this http://stackoverflow.com/questions/16388959/url-rewriting-with-php link in which discribed how you can achive the url rewrite you want. – Akis Sep 08 '14 at 07:21