I had magento installed few days back. My IP address is not stable. I had different ip address when installed and now since the IP address is changed, i cannot login to magento. When i use my new ip address in the url, it redirects to my old ip address but the page is blank. Can anyone help me solve this?
You need to change the base URL in your DB:
update core_config_data set value = 'http://domainname/' where path = 'web/unsecure/base_url' and value='ip';
update core_config_data set value = 'http://domainname/' where path = 'web/secure/base_url' and value='ip';
(ref)
Related
I have a problem when trying to create the Url using URL helper. I'm using Laravel 6.
$verify_url = url("/verify");
This is return the URL with the IP address instead of the domain name.
I don't know if it is a problem with the Apache server or the code.
Please help me. Thanks.
Adding this directive to Apache Virtual Host config seems to have fixed it: ProxyPreserveHost On
But a better way to use your urls is to name them in your routes/web.php. For ex:
Route::post('/verify', 'HomeController#verify')->name('verify');
and wherever you need to access to this url just use like this:
$verify_url = route('verify');
I have developed a website in codeigniter that has been hosted on a static ip address http://182.184.79.154.
Now I want to transfer all the urls of this website to a new domain http://integratedschoolsystem.com.
Can anyone help me how to do this ?
If I understand the question, you're trying to change the PHP application to address the links, not the DNS entry. In that case, assuming you followed Codeigniter's practices by using base_url() for all of your links, then all you have to do is update the config file.
\application\config\config.php
Line 26 (usually) is $config['base_url'] = '';
So set that to whatever your domain is, in this case:
$config['base_url'] = 'http://integratedschoolsystem.com';
https://www.codeigniter.com/userguide3/libraries/config.html
I have a custom domain with namecheap that I want to redirect to my github page which is at myuser.github.io.
My host records at namecheap have '#' and 'www' A records with an IP of 192.30.252.153. At the root of my github page (in the repo) I have a cname record with mydomain.com. in the file. When I browse to my custom domain in a web browser I get a message that the github page cannot be found.
Ideas? I found a few blog posts about setup, but none of the options worked for me.
Namecheap has changed things. This is what I did:
This is what is working for me.
In my pages repository, the CNAME is just:
phillipamann.com
I hope that helps.
To support the improved Github Pages, set your records up like this:
HOST NAME IP ADDRESS RECORD TYPE TTL
# 192.30.252.153 A (Address) 1800
www <username>.github.io CNAME (Alias) 1800
Then, fill out one row under SUB-DOMAIN SETTINGS:
HOST NAME IP ADDRESS RECORD TYPE TTL
# 192.30.252.154 A (Address) 1800
More information here: http://davidensinger.com/2013/03/setting-the-dns-for-github-pages-on-namecheap/
What worked for me was the following...
Hostname IP Record Type TTL
# 204.232.175.78 A(Address) 1800
www 204.232.175.78 A(Address) 1800
I have heroku app available at https://myapp.herokuapp.com (I am using SSL endpoint with self signed cert for now)
I have domain mydomain.md also available at https://mydomain.md - with signed cert.
I want to access my heroku app through this domain.
What I have to do to make it work? What I have to set on heroku and on my domain admin panel? I have never done anything with domains and I have no idea what is CNAME/APEX/ALIAS and I dont know what is the type of my domain.
I am trying to make it work... I added subdomain in admin panel: api.mydomain.md.
And I did: heroku domain:add api.mydomain.md
And now I am confused - is it custom domain or it is root domain or what?
I have to add CNAME record in DNS records of mydomain.md or api.mydomain.md?
I tried to add CNAME record in both but it doesnt work...
What should be name of CNAME record - it must be 'www' or it may be anything?
when I type api.mydomain.md in browser it just shows 'under construction' page
you need to point your domain to your heroku app.
here is a super simple documentation about that:
https://devcenter.heroku.com/articles/custom-domains
The CNAME approached has never worked for me either, but this does...
Edit your domain's DNS Zone File
Create the following 3 A (host) records...
First record...
Host = #
Points To = 75.101.145.87
TTL = whatever you wish (ex. 30 mins)
Second record...
Host = #
Points To = 75.101.163.44
TTL = whatever you wish (ex. 30 mins)
Third record...
Host = #
Points To = 174.129.212.2
TTL = whatever you wish (ex. 30 mins)
In the end it should look something like this screenshot. Hope this helps :)
I have tried to edit my HOSTS file to block just a specific url like so:
127.0.0.1 google.com/pagetoblock
127.0.0.1 www.google.com/pagetoblock
However that isn't working.
Does anyone know where I'm going wrong?
Your HOSTS file only allows you to set the IP address for (as the name suggests) the host (e.g. google.com or www.google.com). You cannot set the IP address for specific pages.
You could use a tool like Microsoft Fiddler to set the IP Address for specific URLs, but this would require Fiddler be running continuously.
Fiddler has a rules engine accessed by Rules → Customize Rules.
There is a great set of samples for your learning, but the following script should work.
For example, to block the logo on the http://www.google.co.uk homepage, you could use the following script:
if (oSession.url == "www.google.co.uk/images/srpr/logo3w.png"){
// Prevent this request from going through an upstream proxy
oSession.bypassGateway = true;
// Rewrite the IP address of target server
oSession["x-overrideHost"] = "127.0.0.1";
// Set the color of the request in RED in Fiddler, for easy tracing
oSession["ui-color"]="red";
}