Why is search not working in Laravel AMP? - search

I am working on an AMP version of my home page - but the search is not working.
The AMP page is live
https://goldenpornlist.com/m
The action in the form is /search
The method is GET.
Somehow the route is not recognised by Laravel.
In the non-AMP, if you search for "test", it will land you at
https://goldenpornlist.com/search/test
while the AMP version lands at
https://goldenpornlist.com/search?term=test
Any idea pls?

I had the searched term in the route but it works after I removed it.

Related

Drupal homepage showing the node/ in search results

I have launched a site built in Drupal 8. When building the site the node/2 was assigned as the home page.
Now when I search for the site in Google I see in the results the node in the URL:
e.g. www.domain.com/node/2
I've never seen this before. Is there a way to not get /node/2 indexed?
you can use drupal's pathauto module [https://www.drupal.org/project/pathauto]
where you can set your url by using token also.

How to rewrite "domain/1*" on Joomla website

I had an old website with pages which had "1" as first symbol.
For example,
www.example.com/1antony.aspx
www.example.com/1tommy.aspx
I moved website to Joomla and I cannot redirect those pages as they appear as home page on the new website. I noticed this problem on all of my Joomla websites.
Everywhere I use "RewriteBase /" in htaccess.
Is it a bug or how to fix it?
I've noticed that I had article with ID 1. I created copy with ID over 100 and deleted all articles from 1 to 9, now it redirects correctly. It seems that when you type in number joomla calls article with that ID number. And the webpage looked like the homepage because all modules were present, but I disabled materials on my homepage.
Hope this helps.

Google results shows Meteor.js site as "Loading..."

I submitted a Meteor.js site (based on Telescope) to Google and in the search results, Google have the site pages crawled as having the title Loading... and only static content (instead of dynamically loaded ones) were in Google's description of the site.
mrt list --using shows that spiderable is already being used.
Is it possible to let google retrieve the actual title of the page?
Yes. You should use the spiderable package.
You can check if your configuration works by adding the escaped fragment parameter. For instance for the documentation: http://docs.meteor.com/?_escaped_fragment_=

AngularJs Routing without hashtag in link?

I've recently began learning AngularJs for web development and am loving it so far. However, I'm not so sure about having hashtags withing the link when routing between views. My main concern is how Google will cache the pages on the site and whether the links will work both ways, i.e. whether users can just click www.sampledomain.com/#/orders/450 and be directed straight to the order page. Is this an okay method or is there a way to route views without the hashtag?
When I remove the hashtag, the reload the page and gets 404 error. Can anyone give me a decent explanation of what is going on. Thanks
When I remove the hashtag, the reload the page and gets 404 error
That's because in your server side code you are probably not handling a request like "www.sampledomain.com/orders/450"
You can have your server-side code handle this request by either returning a redirect to the new URL ("www.sampledomain.com/#/orders/450") or just return the correct HTML directly. The "right" solution will depend on your needs.
User can just click link with a hashtag and it will be directed straight to the order page.
Google treats links with hashtags as different URL's when the content is different. It's more about SEO then angular.js, but here is an article about that: The First Link Counts Rule and the Hash Sign - Does it Change PR Sculpting?
You might want to set Angular's $locationProvider to use html5Mode.
FTA:
$location service has two configuration modes which control the format of the URL in the browser address bar: Hashbang mode (the default) and the HTML5 mode which is based on using the HTML5 History API. Applications use the same API in both modes and the $location service will work with appropriate URL segments and browser APIs to facilitate the browser URL change and history management.
html5Mode will give you "normal" urls in modern browsers while falling back to hash bangs on older browsers.
An html5Mode url:
http://foo.com/bar?baz=23#baz
a hashbang url:
http://foo.com/#!/bar?baz=23#baz

Search google for my website

I have a weird problem with Google when I search for my web address. The problem is when I type in Google search ex. mydomain.com, the results are from alldomain.com - not from my website, and Google give a link "Search instead for mydomain.com", and I need to click that link to give results for mydomain.com. What can I do to fix this problem?
Here is what I mean:
If that's a new website and you don't have a google-webmaster account - you should open one. It's important to register your website (to let Google know you have a new website) so that it'll start index it ASAP.
If it's an "old" website that suddenly stopped appearing on google search results - you can read the answer I posted here.
If you want to search for results from one website you should search for:
SEARCH STRING site:mydomain.com

Resources