Jump to content

Recommended Posts

Hi Everyone,

 

I have a question regarding echoing statements for my website. For some reason my website is echoing out statements that are unrelated to my website. For example, if you visit my website and type in whatever after the /(slash) Google is indexing the term "whatever"

 

A few examples are

http://www.mydomain.com/whatver

 

http://www.mydomain.com/advices

http://www.mydomain.com/review_ratings

http://www.mydomain.com/widgets

http://www.mydomain.com/terms_and_conditions

http://www.mydomain.com/latest_news

http://www.mydomain.com/users/frontend_change_year

http://www.mydomain.com/put_whatever_you_want_here_because_google_will_index_it

 

I can go on and on but I think you get the point of what I'm doing.

 

Often times, on my landing page it will say "Latest News", "Whatever", "Review Ratings", "Widgets" etc...

 

In other words, it's echoing out the keyword that's associated with the URL.

 

My question is, how would I go out stopping/fixing this?

 

Thanks Everyone.

Link to comment
https://forums.phpfreaks.com/topic/272655-question-regarding-php-echo-statement/
Share on other sites

The only reason I can think of as to why its doing that is because your echoing the $_GET[""] function, which pulls specified data from the url so that you can use it inside your script. The only solution here is to find that $_GET function and delete it, tbh, i think thats all you can do lol.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.