Hi I need to re-direct some pages to the homepage of opencart.
For examle:
https://mywebsitenamehere.com/index.php ... e/register
301 redirect to:
https://mywebsitenamehere.com/
Snippet of my .htaccess:
# SEO URL Settings
RewriteEngine On
# If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/
RewriteBase /
RewriteRule ^sitemap.xml$ index.php?route=extension/feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=extension/feed/google_base [L]
RewriteRule ^system/storage/(.*) index.php?route=error/not_found [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
Thank you!!
For examle:
https://mywebsitenamehere.com/index.php ... e/register
301 redirect to:
https://mywebsitenamehere.com/
Snippet of my .htaccess:
# SEO URL Settings
RewriteEngine On
# If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/
RewriteBase /
RewriteRule ^sitemap.xml$ index.php?route=extension/feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=extension/feed/google_base [L]
RewriteRule ^system/storage/(.*) index.php?route=error/not_found [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
Thank you!!
This topic IS NOT related to OpenCart. Please, use Google on the matter. Plenty solutions out there.
Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com
Again, this topic IS NOT related to OpenCart, .htaccess is a common server configuration file. Use Google to find a solution.reggiewills wrote: ↑Fri Jan 22, 2021 6:27 pmHi, these pages are opencart pages on an opencart site.
Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com
Agreed.thekrotek wrote: ↑Fri Jan 22, 2021 6:39 pmAgain, this topic IS NOT related to OpenCart, .htaccess is a common server configuration file. Use Google to find a solution.reggiewills wrote: ↑Fri Jan 22, 2021 6:27 pmHi, these pages are opencart pages on an opencart site.
If you want a core solution then consider using opencarts event system to handle the redirect.
Full Stack Web Developer :: Send a PM for Custom Work.
Backup and learn how to recover before you make any changes!
Who is online
Users browsing this forum: No registered users and 13 guests