Coming to forum have always been helpful. Sure somebody will help me again. I need if some user enters my domain name in the address bar, for example www.mysite.com, it should redirect to www.mysite.com/abc for example, without requring the user to enter www.mysite.com/abc in the address bar. I do not want to install Opencart in www.mysite.com/abc. How can I solve this? I would be thankful for your help. I am using Opencart version 3.0.2.0.
Kind Regards,
aarslankhan
RewriteRule ^$ /abc [R=301,L]
Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces
“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.
Kind Regards
aarslankhan
In this case....add redirection to 404 so when type www.something.com/sdfsdfsdf redirect to www.something.com
You want to make Multistore? or what?
Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
Kind Regards
aarslankhan
(if you want /abc added to every url your site produces you will have to insert it again in the seo_url class)
I use the same principle but for adding the language to the url as in en/ or zh/.
so in catalog/controller/startup/startup.php class you need to add:
Code: Select all
if (isset($this->request->get['_route_'])) $this->request->get['_route_'] = str_replace('/abc','',$this->request->get['_route_']);
not sure where you got the idea about security as it makes no sense, if it is to obfuscate where the sources reside, forget it.
Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces
“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.
Thanks
Kind Regards
aarslankhan
Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces
“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.
Users browsing this forum: Bing [Bot] and 258 guests