• Register
Plug-in Tutorial Build an EC-CUBE plug-in

Top Commentators

114

1

EC Mike

SHOGUNSHOGUN

32

2

hrbabu

SAMURAISAMURAI

29

3

Sumant Jha

SAMURAISAMURAI

29

4

justcubed

SAMURAISAMURAI

21

5

Ashok Kafle

SAMURAISAMURAI

21

6

shahith

SAMURAISAMURAI

14

7

Jeemusu

KABUKIKABUKI

14

8

Yangsin

KABUKIKABUKI

9

9

Zaw Hlaing Bwar

GEISYAGEISYA

8

10

Fei Liu

GEISYAGEISYA

Ranking Key

  • FUJISANFUJISAN1,000+ posts
  • SAKURASAKURA500+ posts
  • SHOGUNSHOGUN100+ posts
  • NINJYANINJYA50+ posts
  • SAMURAISAMURAI20+ posts
  • KABUKIKABUKI10+ posts
  • GEISYAGEISYALess than 10 posts

to change the site url to http://abc.com from http://abc.com/html/ after installation in the server

0 votes

At present i could only set the site url as http://abc.com/html/ during installation. But i need it as http://abc.com/. How could i change it. Could anyone help me how i can achieve this?

asked 2014-11-10 by divya (310 points) KABUKIKABUKI

1 Answer

0 votes
copy the following code to your .htaccess file under the root directory as:

RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www.)?abc.com$
 
RewriteCond %{REQUEST_URI} !^/html/

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*)$ /html/$1

RewriteCond %{HTTP_HOST} ^(www.)?abc.com$
RewriteRule ^(/)?$ html/index.php [L]

Hope, it will work.

Thanks
answered 2014-11-16 by hrbabu (1,680 points) SAMURAISAMURAI
where is this file ?
Did u mean .htaccess file? If yes, it exist on your root directory of the domain(public_html). If not exist, then create it. Thanks...
...