I'm trying to redirect the following URL:
http://test.mydomain.com/Newsletters/BreakingNews/tabid/909/ctl/Details/mid/2574/ItemID/123/Default.aspx
to this one:
http://test.mydomain.com/Home/tabid/756/ctl/Details/mid/2572/ItemID/123/Default.aspx
This should happen to all the pages based on those parameters. The variable is the 123 before the Default.aspx.
Any ideas how to do this?
If you're using DNN7, you might be able to redirect all the requests to the Newsletters/BreakingNews tab (ID 909) to (ID 756) using the built in redirection.
Redirect the BreakingNews page to the Home page by modifying the Page Settings for the BreakingNews page to point to the Home page.
Related
I have a Perch web site which will be moving (gradually) to a new domain, so I need to redirect some pages to the new URL.
e.g. mysite.com/page1 => mynewsite.com,
mysite.com/page2 stays the same
I have tried doing redirects using .htaccess, for example:
Redirect 302 /page1 https://mynewsite.com
This works fine if you type the URL in the browser address bar, but when I click on any link to page1 on the web site, all I get is a white screen and no redirection (I have cleared the browser cache). But then if I refresh the page, it redirects. What am I missing, is there a specific way to redirect Perch pages using .htaccess?
I can't see any way to add a link manually in the admin section (sorry I am not very familiar with Perch) - all I can see is 'Page to link to', with no option to enter an external link. How can you set the link to an external URL?
Thanks.
I've been searching for quite a long time and i haven't found a solution yet.
I want to know how to redirect to a page using only friendly url from view.
I'm working with Liferay v6.2
EDIT :
For example I have a page with friendly url that i know in advance 'domain/users'.
From page A I want to have a link that redirects me to that url.
I can't figure out how can I redirect my home page to different URL. I have found tutorials how to redirect to product or category page but these doesn't work in my case.
For example:
When someone goes to myprestashop.com they will be redirected to myprestashop.com/differentpage
Sorry, if it is very simple, I'm new to prestashop and ecommerce.
You can use the following code to redirect page to another page
From frontend:
Tools::redirect(Context::getContext()->link->getPageLink('abc', true));
If you want to redirect only one page to a specific page, it's better (and also easier) to use .htaccess to do this.
How to Redirect one Page url to another
A marketer in my company has a landing page on our site: www.importantcompany.com/amazingproduct
They have a vanity url that goes to the landing page:
www.amazingproduct.com
I successfully created the iis redirect rule. However, the marketer has comeback and would like to keep the redirect rule, but keep the address in the bar www.amazingproduct.com instead of www.importantcompany.com/amazingproduct
I'm assuming that this is not possible.
The only way to make this work is to create a new site in iis and copy the landing page into the new site and set the new site to go to www.amazingproduct.com
Please let me know if my assumption is correct.
Thanks!
Your assumption is incorrect.
You could write a filter on IIS that looks at the requested URL and notes if "www.amazingproduct.com" is sent in to do a "Server.Transfer" of the request to the subfolder that would be one solution that wouldn't require a new site at all.
URL Rewrite could also be another way to configure a way around this to some degree.
I am currently having two domains www.xyz.com and www.pqr.com. If anybody enters xyz.com I need to bringout the website pqr.com
Both are on the same server.
Kindly suggest how to go about this.
Thanks
In internet services manager, right
click on the file or folder you wish
to redirect then select "Properties"
Select the radio titled "a redirection to a URL".
Enter the redirection page
Check "The exact url entered above" and the "A permanent redirection for this resource"
Click on 'Apply'
From http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/6b855a7a-0884-4508-ba95-079f38c77017.mspx?mfr=true
To redirect requests to another Web
site or directory
In IIS Manager, expand the local computer, right-click the Web site or
directory you want to redirect, and
click Properties.
Click the Home Directory, Virtual Directory, or Directory tab.
Under The content for this source should come from, click A redirection
to a URL.
In the Redirect to box, type the URL of the destination directory or
Web site.
If you want to say that "you should always go to foo instead of bar," you want a 301 redirect (which you do with your front-end server). See http://www.google.com/support/webmasters/bin/answer.py?hl=en&answer=93633
A 302 (temporary) redirect should be used in cases where you can't serve a page, but expect it to come back later. Unfortunately, it's the redirect that you get from JSP forward.
A client-side (meta refresh or javascript) redirect should be avoided whenever possible.
Apache docs for configuring a permanent (or temporary) redirect.
If you want pqr.com to appear in the user's browser's address bar, you'll have to send a 301/302 redirect response, either through a script or through your web server's configuration - how to do this depends on what software you are using.
If you are using IIS7 and you have installed URL Rewrite Module then use this article for more information : IIS URL Rewrite – Redirect multiple domain names to one