Category Redirection - sap-commerce-cloud

We have a requirement to implement redirection rule from one category to home page. can we achieve this by writing category redirection rule using impex or what could be the solution ?
Thanks so much in advance.
Regards,
Jagdish

We can redirect in categoryPageController. Check for the category and redirect to Home.

Related

CS Cart Rewrite Vendor URL

I need to change my vendor url
From
mysite.com/vendor.php?dispatch=auth.login_form&return_url=vendor.php
To
mysite.com/vendor-login
Can someone provide me solution?
Thanks In Advance
You can go to Webiste > SEO > SEO Rules and add the URL there.
Kind regards,
You can rename the vendor.php to aything you consider is better but you need to keep .php extension
config.local.php
PS: vendor.php is not relevant for SEO, is not indexed, is only for vendors to manage their orders/users/products ...

How do I redirect a page to another page in such a way that they both look the same?

I need to redirect https://example.com/projects/issues/(some_text_here) to http://example.com/i/(same_text_here) in such a way that it /i/(same_text_here) shows the same page that /projects/issues/(some_text_here) shows. Is this possible? How would I do this. Please post the code I would use (along with helpful comments explaining why something goes where it does). Thanks!
EDIT: I believe I would have to use the htaccess file?
EDIT 2: By (some_text_here) I mean so random text, like a wildcard. It could be /projects/issues/34... or /projects/issues/hello. In this case first example should redirect to /i/34, and the second example should redirect to /i/hello
Try this out in your .htaccess:
Redirect /projects/issues/ http://example.com/i/

.htaccess rule for codeIgniter

I need an .htaccess rule for the following criteria. I am working in codeIgniter
I need to change:
http://project.com/projectname/controller_folder/sub_folder_in_controller
to:
http://project.com/projectname/sub_folder_in_controller
So if any thing starts with /controller_folder/sub_folder_in_controller, I need it to be converted to /sub_folder_in_controller.
Please help, thanks in advance
-Vamsi
By default, codeigniter allows you to organize your controllers in one-level subfolders.
Take a look in the controller user guide.

Redirect to target url and add query string

I'm trying to redirect just one page on a site to another one using htaccess. I'm new to this, but have been reading and reading everywhere to figure out how to do this, but without success.
I would like to redirect www.example.se to www.example.se/index.php?template=<templatename>
Is that possible and how would I approach that? So sorry if I'm asking a stupid question here, but really can't find a solution and it's driving me crazy.
Try:
Redirect / /index.php?template=<templatename>
Add a 301 right after Redirect if you want it to be permanent.

htaccess rewrite rule redirect

I have some old urls
http://www.website.com/result/?q=&result=1
http://www.website.com/result/?q=&result=2
http://www.website.com/result/?q=&result=3
http://www.website.com/result/?q=&result=4
etc.. probably going up to about 60
Is there anyway I can create one rule that redirects any query that looks like this to the home page /home/ instead of my trying to redirect all of them individualy?
Thanks in advance
yes, i suppose you are using apache HTTPD. In your server configuration you can define an regular expression which filter the pattern you want. For example:
<FilesMatch "/site/*">
...
</FilesMatch>
Define a RegExp and tell where to redirect or what to do.
Hope this helps, Cheers

Resources