sitemap.xml breaks after I add hreflang for urls - localization

I added hreflangs in sitemap and after that I am not able to formatted xml in chrome output when I hit the sitemap url, also when running validation by entering url on https://technicalseo.com/tools/hreflang/, I am getting an error that no urls found, If I upload the file in this same tool, it is fetching all the URLs in the sitemap. The link to the sitemap is here, let me know what can I change to fix the chrome formatted preview and make the validation tool work.

Related

All Invalid Random Paths in the URL Return The Normal Web Page Instead of 404 Not Found Page

I have a website:
https://www.includekarabuk.com
For instance this url contains an article:
https://www.includekarabuk.com/kategoriler/genel/Siber-Guvenlikte-Dusuk-Seviye-Aciklik-Nedir.php
But when I add invalid path to the existing url, page is still being showed.
https://www.includekarabuk.com/kategoriler/genel/Siber-Guvenlikte-Dusuk-Seviye-Aciklik-Nedir.php/test123343242314321423423423/
https://www.includekarabuk.com/kategoriler/genel/Siber-Guvenlikte-Dusuk-Seviye-Aciklik-Nedir.php/sdfdsfdsfsdfdsfsdfsdfsdfsdsdfdsfsdfd/
https://www.includekarabuk.com/kategoriler/genel/Siber-Guvenlikte-Dusuk-Seviye-Aciklik-Nedir.php/132432432/
But because css and javascript file locations will be invalid due to added extra path, page is displayed as broken.
I want to stop this. When the web server receives invalid path as with above, it should respond as 404 not found page coming from web server. How can I do that? I am using Apache web server and php scripting language.
Note: I am not using any MVC framework.

Forcing a brower url update when clicking a route link in Rails 4

I have a ruby on rails app with a relative link on the page that has a wildcard subdomain.
For example:
https://username.mydomain.com with a relative link on an a tag:
/checkout
The checkout url should then bring the user to this page:
https://checkout.mydomain.com/username/buy
I have it going to the right visual display and the request parameters read the proper url, however, the url in the browser is listed as
https://username.mydomain.com/checkout
Is there a way to update the url when a user clicks the relative link. It appears it works only some of the time and I have tried turning off turbolinks by putting data-no-turbolinks in the body tag.

How to upload a page to web and shows the page when url is given in browser?

I have designed a page using photoshop and illustrator for my product.Actually its the first page of our website, construction is not over yet.But I want to upload that one page to web now just for publicity.The thing is that i want to get that page open when the user types url in browser.
So, What i have to do to upload page to web and shows my page whenever the url is written in browser??Please help...
Is your page still in an image format or have you converted it to HTML?
If you have converted to HTML, upload it to your server and give the link of the HTML to users to check out the page.
It's not clear what your problem is but:
Register a domain with a provider
Name your html file index.html and upload it to the root folder of your web space.

How to auto check specific websites for errors with Chrome or Firefox extension?

I'm looking for a Chrome or Firefox extension that will auto validate your webpages from specific URLs.
I don't want to auto-check everything I browse, only the specified URL patters or domain names.
The validation doesn't have to be perfect, but has to be pretty fast and find things like
missing images, css or js files.
JavaScript warnings/errors.
invalid links (404 ones)

asp.net mvc routing, ignore route with extension in the middle of url

Hi How can make the asp.net routing engine ignore routes with an extension of the type
/pathtofile/filename.aspx/morepaths
I know this is hardly a real scenario but I need to know for another similar issue for an autogenerated url
Thanks
The MVC routing engine will not intercept a url if there is a matching file on the file system. (See RouteCollection.Ignore Method) So your example url will work fine. Query strings will also work fine.
You can test this out as follows:
Create an MVC application in Visual Studio
Run it
In your browser enter the url of the Site.css file in the Contents folder.
The file will be served and the browser will pop up the "Save" dialog.
Create an html file anywhere on the site and enter the url.
Your browser will display the html page.
Create an aspx web form anywhere on the site and enter the url.
Your browser will display the web form.
Add a query string or additional path to the url.
Your browser will display the web form.
You can also do this with .asp (classic ASP) pages (although the VS web server won't serve .asp pages, you have to set the site up in IIS for that to work.)
I hope that answers your question.

Resources