Post by shahid1122 » Sat Dec 08, 2018 9:36 pm

https://shop.miagigyani.com/dir/
Can anyone guide me how to remove (/dir/) from my shop url?

Newbie

Posts

Joined
Sat Dec 08, 2018 9:30 pm

Post by xxvirusxx » Sun Dec 09, 2018 6:04 pm

1. Make Database back-up
2. Make a Copy for you Database back-up
3. Use an text editor like Notepad++ and edit Copy of Database an change all url https://shop.miagigyani.com/dir/ to https://shop.miagigyani.com/ and save.
4. From phpMyAdmin remove all Tables from current Database and import edited Copy of database
5. Move all files and directories from dir to public_html
6. Edit both config and change from https://shop.miagigyani.com/dir/ to https://shop.miagigyani.com/
7. Edit .htaccess and change from RewriteBase /dir/ to RewriteBase /

And should work

Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

Post by johnp » Mon Dec 10, 2018 6:18 pm

What works for me is:
1. Copy database for backup.
2. Move all files up from the sub directory to the top level.
3. Edit config.php and /admin/config.php to reflect the change.
4. Edit .htaccess file and change RewriteBase /dir to RewriteBase /

Opencart 1.5.6.5/OC Bootstrap Pro/VQMOD lover, user and geek.
Affordable Service £££ - Opencart Installs, Fixing, Development and Upgrades
Plus Ecommerce, Marketing, Mailing List Management and More
FREE Guidance and Advice at https://www.ecommerce-help.co.uk


User avatar
Active Member

Posts

Joined
Fri Mar 25, 2011 10:25 am
Location - Surrey, UK
Who is online

Users browsing this forum: No registered users and 143 guests