Author Topic: How to change url  (Read 5271 times)

Offline Rafich

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
How to change url
« on: May 24, 2017, 06:49:19 AM »
How to change url from //example.com/index.php?rt=product/product&product_id=51 to //example.com/category product / product,
Please help me. thank you :D :D :D :D

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 5774
  • Karma: +274/-2
    • View Profile
Re: How to change url
« Reply #1 on: May 24, 2017, 07:18:16 AM »

Offline marshasarv

  • Newbie
  • *
  • Posts: 9
  • Karma: +2/-0
    • View Profile
Re: How to change url
« Reply #2 on: May 08, 2018, 07:11:41 AM »
The solution of the URL Changing-

WINDOWS + WAMP solution

Step 1

Go to C:(Back Slash)wamp(Back Slash)bin(Back Slash)apache(Back Slash)Apache2.2.17(Back Slash)conf(Back Slash)
open httpd.conf file and change
#Include conf(Back Slash)extra(Back Slash)httpd-vhosts.conf
to
Include conf(Back Slash)extra(Back Slash)httpd-vhosts.conf
i.e. uncomment the line so that it can includes the virtual hosts file.

Step 2

Go to C:(Back Slash)wamp(Back Slash)bin(Back Slash)apache(Back Slash)Apache2.2.17(Back Slash)conf(Back Slash)extra
and open httpd-vhosts.conf file and add the following code

<VirtualHost myWebsite.local>
    DocumentRoot "C:(Back Slash)wamp(Back Slash)www(Back Slash)myWebsite(Back Slash)"
    ServerName myWebsite.local
    ServerAlias myWebsite.local
    <Directory "C:(Back Slash)wamp(Back Slash)www(Back Slash)myWebsite(Back Slash)">
        Order allow,deny
        Allow from all
    </Directory>
</VirtualHost>
change myWebsite.local and C:(Back Slash)wamp(Back Slash)www(Back Slash)myWebsite(Back Slash) as per your requirements.

Step 3

Open hosts file in C:(Back Slash)Windows(Back Slash)System32(Back Slash)drivers(Back Slash)etc(Back Slash) and add the following line ( Don't delete anything )

127.0.0.1 myWebsite.local
change myWebsite.local as per your name requirements

Step 4

restart your server. That's it

WINDOWS + XAMPP solution

Same steps as that of WAMP just change the paths according to XAMPP which corresponds to a path in WAMP


Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 5774
  • Karma: +274/-2
    • View Profile
Re: How to change url
« Reply #3 on: May 08, 2018, 07:30:04 AM »
thank you marshasarv

 

Powered by SMFPacks Social Login Mod