I have a WordPress site, let's say there is a post that has a url: https://highthand.com/176-2/, its slug is 176-2, and I need that when I click the download button, I go to the site https:// getsafe.cloud, but so that this slug is displayed in the url, that is, the url looks like this https://getsafe.cloud/176-2. I can just go to https://getsafe.cloud/176-2, well then I will get an error that the page was not found, and I need the contents of https://getsafe.cloud to be displayed. How can this be implemented. Thanks in advance.
You can achieve this by changing the 404 page that came by default in the worpdress Themes. Also you can change url direction of 404 to home directly. Hope yo like the answer.
Thanks
Related
So, I have an hybrid webapp in android and I want to redirect my users to one of my Google Forms. The code looks like this:
Text
But whenever I click on the link, I get the following error:
Application Error
net::ERR_FILE_NOT_FOUND (file:///android_asset/www/%22https://goo(.)gl/forms/...%22)
Somehow the link is relative to the root of my app, and I want it to be absolute.
Thank you in advance for your help.
PS: I put brackets in the goo(.)gl URL because otherwise I wasn't allowed to publish the URL
A link gets automatically absolute when we use http, https in the begining.
I don't know why you are getting this error. Maybe You should try it in pc.
I am currently working on http://rightinfo.co.in
When I am trying to share this site on a FB page it is showing an image that I have not included in my site.
I have tried by adding ?v=1 to the url and url shortner services.
In facebook debugger also , the image is not showing. But in actual sharing , unknown image is showing.
Please help me to solve this
Thanks
You have issue with tags Please check this facebook debugger it explains alot Facebook debugger
It's because the og:image (see here) meta tag is set. This tag defines the image, which will be shown on facebook.
To change this image, try to edit this tag, take a look at the theme settings.
Another way is to change/delete the image itself, e.g. via FTP.
You can find it here: WEBROOT/wp-content/themes/Morpheus/img/portfolio/folio01-preview.jpg
Btw, I see you are using wordpress, I'd consider using a SEO plugin, which makes a proper use of the og-tags as explained here
What I need to do is redirect my main tumblr blog to a static homepage.
So that when someone goes to my blog is redirected to the static homepage instead of all the posts.
The process of redirecting might seem like making it harder than it needs to be, but other solutions have not worked. I was able to do the static homepage by changing other parts of the code (without the need of redirecting pages) but it made all the posts disappear, even when looking at their tags. (See more detail into this solution I tried in this question)
So since that doesn't work, all I can think of now is to redirect my tumblr to another one to be the homepage. The new tumblr blog with the static home page is "no-poo-es-inicio.tumblr.com" and the links in the navigation bar go to the actual tumblr blog where I will be posting. (This new blog has the code that created a static homepage and hid all the posts)
To do the redirecting I have tried:
<script type="text/javascript">
if(location.href == 'http://no-poo-es.tumblr.com');
location.replace('http://no-poo-es-inicio.tumblr.com');
</script>
And it works at redirecting, but it redirects everything that starts with my blog url, meaning "no-poo-es.tumblr.com/tagged/foto" or "no-poo-es.tumblr.com/post1" are also redirected to the new url, which I dont want since the new url is only supposed to be the homepage.
I need to find a way so that only my blog url is redirected, but when it has anything added afterwards it won't redirect.
Don't know much about coding so if you have a solution that is not html or javascript, can you also tell me which code to add to install whatever needs to be installed, if even, and how to properly write it in the html code. Thank you very much in advance.
Tumblr has help for this here.
Otherwise, I'm unsure whether Tumblr will have user-support for JS redirection.
I'm going to do a website with AJAX.
At the moment i change my main content with '#':
e.g. example.com/#home --> example.com/#site1
I managed it to change the content at the moment the hashtag changes.
But now i want to use a method i know from google.
example.com/home/ --> example.com/site1/
I know so far how to change the URL without reloding the page. (Modify the URL without reloading the page) My problem is if the user reloads the site or uses the navigation buttons, he will land on example.com/site1/index.php and not on example.com/index.php.
BUT it is important that the data (site1) is send to the script.
I hope you can understand my problem.
You need something on the server side (.htaccess for example) to return your index.php no matter what the url is.
See here for a possible solution: https://stackoverflow.com/a/8392502/1030527
So, I have a dotNetNuke site that was developed by someone else. These developers are not available to respond to requests as fast as I need in this case, and I have to fix something on a customer's site ASAP.
Somehow, the Home link in the site's side nav is pointing to the Contact Us page. Not sure how this was done, but I have limited access to the backend of the site (what's there is a mess anyway).
I'm looking for a way to change the URL of the Home nav item only from http://www.mywebsite.com/subdir/ContactUs/tabid/2530/Default.aspx to http://www.mywebsite.com/subdir/. I've tried swapping out the text with JavaScript to no avail. Does anyone have any ideas?
Any help would be greatly appreciated. Let me know if you need more info.
As lostPixelx suggest and seeing it kind have some hack that DotNetNuke do to the the link work. Please add the following to a javascript
$(function() {
$('#tddnn_dnnMENU_ctldnnMENU2529').click(function(){self.location="http://www.mydomain.com/subdir/"})
});
I would recommend you go in to the PAGE SETTINGS for the HOME page via the Admin/Pages (page management).
From there, on the last "tab" in the settings, towards the bottom, you can find a "URL" or "Navigation" Section, make sure nothing is selected there, then save the page settings.
Running this Jquery code will remedy your issue... but it seems like your site has some issues that you should address, not bandage with JS.
$('h1.logo a').attr('href','http://www.mydomain.com/subdir/');