I'm attempting to link to another site from the main navigation on my Modx Revolution 2.2.13-pl site.
I tried to create a weblink resource, but it simply loads up a page with the URL in the content of the page, then redirects to the homepage as if you had hit a page that did not exist.
Can anyone chime in on how to properly create a weblink in Modx?
Thanks.
Update: I am using a fully qualified URL to an external website.
Weblink setup:
HTML Output:
I tried to get a SS of what happens when you click the link, but it redirects too fast. It's basically my template with the resource title in H4, then the URL in the weblink field on the page as a link in the content area. Then it redirects to the homepage (which is our default 404 action)
This is works as expected. Compare with what you got.
Page:
Wayfinder output:
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 have a Google Blogger blog where I blog. Sometime ago, I posted a post but now after getting new data, I updated that post and I got new URL of that post. But I have a lot of backlinks to that old URL and now when they are htiing then they are getting 404 page that is a bad SEO. Now I want to use 301 Redirect to redirect old URL to new URL.
For this purpose, I know that we have to use .htaccess and add Redirect 301 OLD_POST_URL NEW_POST_URL but Google Blogger doesn't offer to edit .htaccess so How to do this there?
Yes, Google Blogger does not offer you to edit .htaccess file but they just released an option to use Custom 301 Redirects. From this featurs, you can do what you want. Just follow the below step to use this features.
Go To Your Desired "Blog" Dashboard.
Go To "Setting".
Go To "Search prefences".
Click "Edit" On Custom Redirects ? no items Edit
Now Add Your Desired Old Post URL In "From" Input Section And Your
URL Should Be Like /YEAR/MONTH/POST-TITLE.html
Now Add Your Desired New Post URL In "To" Input Section And Your URL
Should Be Like /YEAR/MONTH/POST-TITLE.html
Check "Permanent" Option.
Click "Save".
Then Click "Save Changes".
I added a screenshoot below to understand completely.
There is another solution for site based redirection using javascript. I've done this after changing my blogger subdomain and it works. Go to Settings -> Search Preferences and find the section Custom Page Not Found and click edit next to it. Enter a code similar to the following to redirect your old pages to your new web site:
<script>
var url = location.href;
var newurl = url.replace('oldblog.blogspot.com','newblog.blogspot.com');
location.href = newurl;
</script>
Change urls and save. You can use this method to redirect to other domains too. This is the custom 404 page of your old site so your old blog must return 404 for the urls you want to redirect.
When Server-side redirection is not supported, you can use canonical meta-tag in the <head> section of HTML:
<link rel="canonical" href="http://example.com/some-page-123" />
(Source)
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.
I'm creating login form using JSF 2.0. Below is the detailed description.
When I run the form, I get the login.xhtml
Once I get successfully logged in, I get page as temp1.xhtml and when I click the link (that I have created on temp1.xhtml page) I get temp2.xhtml page.
All is working perfectly... but the problem of URL which is described below...
When I successfully logged in, the browser still shows URL as login.xhtml instead if temp1.xhtml
when I click on the link that is on temp1.xhtml, I get temp2.xhtml page but the URL says temp1.xhtml instead of temp2.xhtml
Could any one help me to show the correct URL as I have to filter these pages and as URL is INCORRECT my filter is useless...
Please note that I am not using configuration file for directing the pages...
You have to add:
?faces-redirect=true in the end of the view that you are directing.
e.g:
return "mypage?faces-redirect=true"
you can also directly use it in the .xhtml files for example on page temp1.xhtml page in link use action="temp2?faces-redirect=true"