I have installed wordpress in htdocs / store folder
All the styles and scripts loads from localhost/store/.. location
where in my localhost works with 81 port: localhost:81/store
This is strange when I activate particular theme, this issue happens other default theme works fine.
Please refer to screenshot attached.
What I tried so far:
Checked the database for site and Url, all are fine.
Appearance > general > Home url and site url is also accurate to localhost:81/.
NOTE: my other localhost wordpress websites works fine, theme I bought may have issue. Im tired of finding solution
You need to add the port to the Wordpress Address and Site Address in Dashboard -> Settings -> General.
Source: http://jumptuck.com/2009/01/09/wordpress-on-non-standard-port-not-port-80/
Are you sure the site url in wordpress general settings are right?
if yes try to change site url in wp-config.php
define('WP_HOME','http://example.com');
define('WP_SITEURL','http://example.com');
https://codex.wordpress.org/Changing_The_Site_URL
Related
I made a Tauri Hello world app, using react-ts, and that contained logos for Tauri, Vite, and React, that are clickable of course, it uses an a HTML tag like <a href="https://vitejs.dev" target="_blank">, which if I click on it, opens a new tab in my default browser that loads that URL.
So naturally, I wanted to test if Tauri apps would open that link (or any other remote URL actually) inside the app's webview, so I changed that to <a href="https://vitejs.dev"> which did just that.
What I want to know is: how to configure any Tauri app to not open / load any URLs unless I specifically allow it to?
What I tried already:
I tried changing the CSP option in the tauri.conf.json file to none to not allow any remote scripts or ....
"security": {
"csp": {
"default-src": ["'none'"]
}
},
I also tried searching for some kind of allowed-navigation option that someone talked about
I also started looking into a before-navigate hook in the main.rs file but i don't know how to implement it
I would really appreciate it if you explain how to reach my objective, and I would be even more indebted to you if you can give me same better options or the ones more appropriate for a production ready app.
Regards,
zk.
I am implementing deep linking to my android app and it works only when clicking on a link with the desired url such as https://mydomain.co.il only outside browsers like in whatsapp etc.
I know that for making app links work from browser, the website needs to have assetlinks.json file located at https://mydomain.co.il/.well-known/assetlinks.json in order to verify that I am the owner of both the domain and the app.
So I do have the assetlinks.json file ready but does anyone know how can I put the file in that specific location (https://mydomain.co.il/.well-known/assetlinks.json) on my website when using Wix as the platform ?
Thanks in advance
I struggled to find a straightforward way to host the Android Digital Asset Links file on Wix. Found bits and pieces of help on the net. Tested my code and it seems to work.
Here it goes:
Android needs a Digital Asset Links file hosted on the website of an app to verify ownership. The link required is: https://www.yoursite.com/.well-known/assetlinks.json
Since hosting this file at that location was not a plausible solution on Wix (at least to me at the time of this post), we'll need to add a JS file which can spit out the same JSON data and then redirect the URL Google expects to our new link.
Go to Dev Mode -> Enable Developer Mode and switch on the developer mode
In the new left pane, go to {} (Public & Backend)
Next to Backend, click on +, and create a new Javascript file with the name http-functions.js
Add this code:
// Import the Wix http functions API
import {ok, notFound, serverError} from 'wix-http-functions';
// Set the assetlinks variable (between the single backticks) with the content of your assetlinks.json file
let assetlinks = `[{
"relation": ["delegate_permission/common.handle_all_urls"],
"target" : { "namespace": "android_app", "package_name": "<Your app package>",
"sha256_cert_fingerprints": ["<Your app's SHA256>"] }
}]`
// Define http get function for your trust.txt file
export function get_assetlinks(request) {
let options = {
"headers": {
"Content-Type": "text/plain"
},
"body": assetlinks
};
return ok(options);
}
Publish your site
Test if the JSON is displayed by calling: www.yoursite.com/_functions/assetlinks
Hoping that things are great so far, we'll proceed to the last and final step - URL redirection
Go to site Settings > Marketing & SEO > SEO Tools > URL Redirect Manager
Click on New Redirect and enter for:
Old URL: /.well-known/assetlinks.json
New URL: /_functions/assetlinks
Test out the link www.yoursite.com/.well-known/assetlinks.json
Hope this helps someone! Better late than never.
So my use case is something like this -
We used to access JIRA site with an old domain:
https://domain1/browse/TKT-12100
Now the domain is moved to:
https://domain2/browse/TKT-12100
But my browser history has all links with domain1. I usually type a few keywords in my browser URL tab and auto complete and enter. Now at this point I want to dynamically replace domain1 with domain2 so that my JIRA tickets load fine. I hate the manual step here.
I am looking for something on lines of Greasemonkey script to achieve this but any other methods are also welcome.
Here how it finally worked for me. Apparently grease monkey scripts do not work if the server is not live. So first I changed /etc/hosts file to -
IPOfDomain2 domain1 domain2
Post this change GM script is working fine - https://gist.github.com/aniket91/464ed8f61ecdeec7cf99ae65ea6514c9
I'm using Soundclouds JS sample code for client side JS apps to connect with the Soundcloud API, as a start. The only difference between their code and mine is I've put in my own client_id and redirect_uri. (I also copied their callback.html, put it on my server, put its address in the soundcloud page for my app).
After ok-ing with my popup blocker, the auth popup comes up and asks permission to access my account, I give it permission, then the popup clears all previous content and simply informs: 'This popup should automatically close in a few seconds' - but it doesn't, and the rest of the code that shows its past authorization never displays.
Here is Soundclouds sample that I'm using. I've tried it while using a server on localhost and also deploying it and changing redirect_uri appropriately with the exact same results.
SC.initialize({
client_id: 'YOUR_CLIENT_ID', // changed it to mine
redirect_uri: 'http://example.com/callback'
});
SC.connect().then(function() {
return SC.get('/me');
}).then(function(me) {
alert('Hello, ' + me.username);
});
Looking in the dev console on both Chrome and Firefox, I dont see any errors. I've also made sure the protocol for my redirect_uri file matches between my account settings and the code.
Does the 'Website of your app' field on the Soundcloud page for my app make a difference? I tried setting it, it didnt fix it. What does client secret do?
The closest to an answer I've found so far is from this SO page where it seems he found out that you can't use an url that doesn't start with 'www.' ??? Its hard for me to believe that this is the problem and unfortunately for me neither localhost or my domain start with www.
Thanks in advance for any help.
In your callback.html, change the line:
<body onload="window.opener.setTimeout(window.opener.SC.connectCallback, 1)">
to:
<body onload="window.setTimeout(window.opener.SC.connectCallback, 1)">
In your application setup page at soundcloud.com, ensure your website setting and callback uri are on the same domain (whether that is localhost or the production domain) and all should work.
Note: for debugging, comment out this line to leave the popup there deliberately, then console can be used to interrogate other code in the callback.html page.
I've got a problem with creating an App that could be then added to facebook pages as a tab. The problem is probably because I'm new to this facebook stuff and I'm doing something wrong here.
Currently I'm trying to use both URL and JS api call (as I'm using language other than english - the errors I put below could differ a bit from what they are in english). Of course APP_ID below is replaced with the proper app id.
URL:
https://www.facebook.com/dialog/pagetab?app_id=APP_ID&redirect_uri=facebook.com
which results in 'There was an error. Try again later.'
JS:
FB.ui({
method: 'pagetab',
app_id: APP_ID
}, function(response){});
which results in: 'This application could not be activated on your profile.'
The profile i"m trying to add this of course has some facebook Pages on it. The app I'm trying to add was created accordingly to https://developers.facebook.com/docs/appsonfacebook/pagetabs/ . I've created a simple Page Tab app, entered a test name and URL, and that's it. When I;m in the fb dev dashboard there's a green icon next to the app that says 'live and available to all users'.
Does anyone have idea what could be wrong here, and why can't I add this app to my FB page?
There cause of the error is likely to be two reasons:
The redirect_uri is incorrect. It must be part of your app domain (as setup in the App Settings). If you app is hosted at http://myapp.com, then the redirect_url needs to be on the same domain, e.g. http:/myapp.com/installed.php.
You have not setup the Application correctly on the App Settings page. Have you added the correct "Page Tab" settings? At the minimum, the Page Tab Name, Page Tab URL and Secure Page Tab URL are required.