7 Replies - 233 Views - Last Post: 14 February 2014 - 10:43 AM Rate Topic: -----

#1 Ramzan Ali Qureshi  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 13-February 14

Change Url

Posted 13 February 2014 - 01:28 PM

Slaaam to All....

Please tell me how do i change my site url from www.sitename.com/filename.ext to www.sitename.com/filename

I m new in php.
Is This A Good Question/Topic? 0
  • +

Replies To: Change Url

#2 modi123_1  Icon User is offline

  • Suitor #2
  • member icon



Reputation: 8371
  • View blog
  • Posts: 31,101
  • Joined: 12-June 08

Re: Change Url

Posted 13 February 2014 - 01:31 PM

'website remove file extension' or 'url rewrite'

One option - you can do that with .htaccess changes
http://alexcican.com...-with-htaccess/
Was This Post Helpful? 0
  • +
  • -

#3 ArtificialSoldier  Icon User is offline

  • D.I.C Addict


Reputation: 200
  • View blog
  • Posts: 699
  • Joined: 15-January 14

Re: Change Url

Posted 13 February 2014 - 01:37 PM

With that basic example, you can also use a directory with an index.php inside it.
Was This Post Helpful? 0
  • +
  • -

#4 Ramzan Ali Qureshi  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 13-February 14

Re: Change Url

Posted 14 February 2014 - 03:17 AM

Thankx Alot bro
Was This Post Helpful? 0
  • +
  • -

#5 Ramzan Ali Qureshi  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 13-February 14

Re: Change Url

Posted 14 February 2014 - 03:21 AM

Salaam to all..... :whistling:

I want to change url from www.sitename.com/foldername/index.php?c=url to www.sitename.com/foldername/index.php/url

Here url is database field name all data retrieve on the basis of this url.
Was This Post Helpful? 0
  • +
  • -

#6 Dormilich  Icon User is offline

  • 痛覚残留
  • member icon

Reputation: 3391
  • View blog
  • Posts: 9,586
  • Joined: 08-June 10

Re: Change Url

Posted 14 February 2014 - 05:13 AM

you do it exactly the same as in your other thread.

URLs—and calling the correct handlers on them—are the (sole) responsibility of the server software (Apache, nginx, etc.).
Was This Post Helpful? 0
  • +
  • -

#7 modi123_1  Icon User is offline

  • Suitor #2
  • member icon



Reputation: 8371
  • View blog
  • Posts: 31,101
  • Joined: 12-June 08

Re: Change Url

Posted 14 February 2014 - 08:17 AM

Do not create duplicate topics. Merging.
Was This Post Helpful? 0
  • +
  • -

#8 Ramzan Ali Qureshi  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 13-February 14

Re: Change Url

Posted 14 February 2014 - 10:43 AM

yes not Duplicate topic
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1