Facing url redirect issue - url

hi there i am using wordpress on main domain and mybb forum script on subdomain
now problem is this
when i point to site.com/forum/
the index.php file open up the forum with wrong urls
but my real url is subdoamin.site.com/index.php
how can i fix that
also getting this in error log
site.com/forum/thread title
istead of subdomain.site.com/thread title
using apache and cpanel
if one you have some time to check my problem please check it and help me i am very thank full to you if it fixed as i asked wordpress, mybb and also hoster to check and fix but no luck yet so please help me
thanks in advance
here is my url
asf-mobiles.com
and forums.asf-mobiles.com

You can easily do a permanent redirect if you wish to specify a certain url to get redirected.

Related

Universal Link not working despite AASA is set correctly - iOS

I have been working to implement universal links for my app, but have encountered difficulty. Despite having a valid AASA file and properly configuring my associated domains, I am unable to troubleshoot the issue and am unsure if it is a problem with my setup or a bug on Apple's end.
AASA VALID And hosted :
Associated domain set :
The Only thing that i don't get when i try to troubleshoot it with console i get:
I would appreciate any insight or experience that you may have had with a similar issue.
Thank you in advance 🙏
I'm pretty sure I see one clear issue here.
The associated domain is set incorrectly, it should not contain 'https://'
It should be set as:
'applinks:c870-2a02-3032-10-edbc-8dcf-b81f-d084-83e1.eu.ngrok.io'
Try this and see if it works.
If it helps, please consider marking this as the answer.
If not, please let me know what issue you see after making the above change.

Duplicate title and meta description on same url

I'm working through some issues on semrush and they've highlighted that I've got duplicate title and meta descriptions on the following URL types:
domain-home.com/
domain-home.com.
I don't know how the second url would've come about so I'm not sure how to fix it. I can't see anything in the htaccess that would've generated that . after the domain so I'm not sure how to fix it.
Does anybody have any ideas?
Thank you
It turns out the reason was because the client had included a link to the home page in the text of one of their pages that had a full stop within the href.
This caused the issue for semrush.
Next time I'll think about whether or not the reason could be simple human error rather than some more complex reason.

joomla error establishing a database connection

Working in Joomla, I was trying to update a URL redirect from old URL to new URL via .htaccess but I think in my messing around on the backend, I did something that is now causing old URL to show an error message "Error establishing a database connection" and nothing I do is resolving this error message.
Prior to making the change I made a copy of the .htaccess file and renamed it to something else so that if I made a mistake such as this, I could easily revert back to it but restoring that file did not work. I also cleared my cache which fixed other issues but not this particular one. Ended up creating a new page and menu so now the new URL works like it's supposed to. Just trying to learn how to get back the old URL. Please help if someone knows a good fix. Thank you in advance.

localhost.com redirects to google search

I am eager to know why localhost.com (without www) redirects to google.com. I also noticed that www.localhost.com gives a 404 page not found. I checked this in Firefox, Chrome and Internet Explorer all does the same. I checked the domain name records and it shows it belongs to Tucows and I am pretty sure Google doesn't own it and I know we can use http redirect to change it to a www or non-www version as the site owner wishes.
Interesting answer posted by Ken Watford, Google employee: http://www.quora.com/Why-does-http-localhost-com-redirect-to-Google
He claims someone bought the domain when the web was still young and kept it ever since, but he does not say who.
It looks like others have had the results as you, check out the links below.
Try here:
http://answers.yahoo.com/question/index?qid=20111105050333AATP1r5
or here:
http://forums.phpfreaks.com/topic/146474-localhost-redirects-to-googlecom/
I think localhost.com should be owned by google as I tried pinging it and it showed the ip of google.com.I still don't know why the DNS records shows tucows as the owner.
I have been searching this from long and finally i found complete solution after going through different answers.
As far as #pradeep's answer is concern, he is right that localhost.com is purchased and points to particular IP so it is redirecting.
But we can override domain names in Windows platform for our local development PC via hosts file residing in C:\Windows\System32\drivers\etc as per #Faysal's answer.
Open hosts file as administrator and enter following line
127.0.0.1 localhost.com
But doing such also did not solve my problem. So i found final solution which will work in chrome browser.
In chrome you have to clear all dns cache via opening following url
chrome://net-internals/#dns
And here clear all cache and finally you will be redirect localhost.com to your local server's home page.
If you are using the Windows platform, then go to your %windir%\System32\drivers\etc and copy the host file to %userprofile%\Desktop. Open it with any text editor and remove the # sign from the front of 127.0.0.1 localhost. Save it and paste it back. Check if the problem is solved.
localhost.com is a website. It does not point to your local IP, instead it most likely has an A record pointing to Google's IP. It practically is Google, and I can prove it.
When the site worked if you connected using HTTPS then it would give a certificate error, the reason being that the certificate is signed to google.com but localhost.com is connecting.
I think the site has now been removed though.... I hope that solves it. It can cause some confusion since localhost points to 127.0.0.1.

How to remove http:// from a website URL

Question:
I just stumbled upon:
http://icculus.org/~chunky/writing/inetd
I realized it removes the http://www in front of the URL.
How is that done?
I am not aware of URL-rewriting being able to do that, or not ?
Google has been experimenting with this feature in the developer version of Chrome. You can read about it at
http://code.google.com/p/chromium/issues/detail?id=41467
http://www.theinquirer.net/inquirer/news/1601917/google-drops-http-chrome
If this happens, it is a browser specific setting and something you don't have control over as a website publisher.

Resources