Google does not index pages when friendly urls are on.
Instead the crawler only reports the pages as a 404 error.
Is there anyway around this so that all pages will be indexed?
Last modified: 11 Feb 2007 7:17 PM
Nighthawk (Guest)
27 Jan 2007 2:12 PM
If that's correct, and it seems logical now you point it out that google bots would treat a 404 redirect that way.
The ViART developers should urgently come up with something like a ModReWrite script "like they do with Joomla SEO" to handle this Friendly URL function.
Friendly URL's have a great SEO advantage if they work correctly so this function is VERY important and should be kept / used if possible.
Would it help to create a Google SiteMap? maybe they could also build in a function that would create the sitemap from the admin pages, there are a number of php scripts that would do this anyway.
I have just done a site search on google for viart.com and over 3400 pages are listed, as viart seem to be using friendly URL's then how have they got so well listed / indexed.
You raised a good point but maybe we are jumping to conclusions here.
Vito
27 Jan 2007 6:03 PM
Hello,
Alternatively you can use mod_rewrite module of your Apache. Please add lines like below to your .htaccess file to turn on friendly URLs
a random URL now produces a totally blank page, how could we make this point to a custom 404 page.
Would we have to add something to friendly_url.php that directs to a 404 page?
David.
Vito
29 Jan 2007 6:32 PM
Hello,
You can try to amend your friendly_url.php file and replace strings
header("HTTP/1.0 404 Not Found");
to
header("Status: 404 Not Found");
Thanks,
ViArt Support Team
Stevef
29 Jan 2007 11:28 PM
Hi,
This does not seem to work on my server as it still produces a totally blank page.
I have custom error pages, ie 404.html
Steve F
Hello,
You can try to amend your friendly_url.php file and replace strings
header("HTTP/1.0 404 Not Found");
to
header("Status: 404 Not Found");
Thanks,
ViArt Support Team
Anjula
31 Jan 2007 1:56 PM
Hi,
If you use ErrorDocument directive in your .htaccess file then please try to replace
header("HTTP/1.0 200 OK");
onto
header("Status: 200 OK");
in your friendly_url.php file.
Regards,
ViArt Support Team
Nighthawk (Guest)
31 Jan 2007 6:54 PM
Hello,
Still getting the blank page after trying both the above sugested solutions.
The blank page loads with the folling in source.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD>
<BODY></BODY></HTML>
Thanks.
If you use ErrorDocument directive in your .htaccess file then please try to replace
header("HTTP/1.0 200 OK");
onto
header("Status: 200 OK");
in your friendly_url.php file.
Regards,
ViArt Support Team
Nighthawk (Guest)
3 Feb 2007 1:40 AM
Regret that if this problem can not be resolved we will have to abandon ViART multi domain licence proposition.
Any further idea's yet please?
David.
Hello,
Still getting the blank page after trying both the above sugested solutions.
The blank page loads with the folling in source.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD>
<BODY></BODY></HTML>
Thanks.
If you use ErrorDocument directive in your .htaccess file then please try to replace
header("HTTP/1.0 200 OK");
onto
header("Status: 200 OK");
in your friendly_url.php file.
Regards,
ViArt Support Team
Vito
3 Feb 2007 8:34 PM
Hello,
Please, send your site FTP details to our support team so they can investigate what is wrong.
Regards,
ViAtr Support Team
Nighthawk (Guest)
4 Feb 2007 6:32 PM
Thanks Master Yoda
With your help this is now working OK
from line 241 in friendly_url.php now reads as follows:
For others having this problem the above should work and you can replace index.php with any custom page i.e. 404.html
Thanks
David.
daviswe
10 Feb 2007 2:08 PM
All,
A word of caution, perhaps Yoda the master can help: Making the settings here give me wonderful friendly URLS, but something stopped working: My visitors can't get to the tabs on my products pages. Each tab other than the default that opens when you load the product details page, results in a link back to the main index page. This behavior is normal for any bad or poorly formed URL and from Yoda's code:
} else {
header("Location: index.php");
I think this is what's driving the tab links back to the index. Here's an example of one of those links:
Any attempt to go to this URL, generated by Viart code for the tab, and copied using 'copy link location' in Mozilla, results in loading the main page edsets.com
I could use a fix for this if anyone knows more than I do about it.
I want to extend a word or caution about the usage of this feature/script modification.
We recently moved a big site and set up Viart and as a result all of the pages/addresses changed. While it would have been nice to simply redirect all the pages to the correct, new address, it wasn't really possible for a variety of reasons.
At any rate, we really got hammered by Google for using the following modification to the friendly URL page:
This made every page look like it was showing the home page and it was not communicating the correct info to the Search Engines, and we dropped off planet Google. We really wanted Google to know this was a 404 page, so we made this change which corrects and alleviates the harm/disaster. It delivers the appropriate header(s) and delivers a 404 page we can customize.
-------------------------
if ($page_name) {
header("HTTP/1.0 200 OK");
header("Status: 200 OK");
include_once ($page_name);
return;
} else {
header("HTTP/1.0 404 Not Found");
header("Status: 404 Not Found");
include("/home/domain/public_html/404.php");
exit;
}