Our site www.viart.com site is operated by latest Viart Shop 5 with default Clear design
Topic Information
Steve F (Guest)
Steve F (Guest)
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)
Nighthawk (Guest)
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
Vito
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
 
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /friendly_url.php [L]
</IfModule>
 
Thanks,
ViArt Support Team
 
 
Stevef
Stevef
Thanks!
 
The mod_rewrite does the job.
 
Steve F
 
Nighthawk (Guest)
Nighthawk (Guest)
Yes the mod_rewrite does the job.
 
However, what about other real 404 error's?
 
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
Vito
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
Stevef
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
Anjula
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)
Nighthawk (Guest)
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)
Nighthawk (Guest)
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
Vito
Hello,
 
Please, send your site FTP details to our support team so they can investigate what is wrong.
 
Regards,
ViAtr Support Team
 
Nighthawk (Guest)
Nighthawk (Guest)
Thanks Master Yoda
 
With your help this is now working OK
from line 241 in friendly_url.php now reads as follows:
 
if ($page_name) {
header("Status: 200 OK");
include_once ($page_name);
return;
} else {
header("Location: index.php");
exit;
}
 
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
daviswe
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:
 
http://www.edsets.com/sonic_n-vader&tab=spec
 
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.
 
Ed
 
Vito
Vito
Hello,
 
Seems that tab urls are bad formatted in version 2.8.
Please download our latest version of block_product_details.php at http://www.viart.com/downloads/block_product_details.zip
unzip and upload it to your web folder.
 
Thanks,
ViArt Support Team
 
Shore (Guest)
Shore (Guest)
Hi Everyone,
 
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:
 
-------------------------
 
if ($page_name) {
header("HTTP/1.0 200 OK");
header("Status: 200 OK");
include_once ($page_name);
return;
} else {
header("Location: /index.php");
exit;
}
 
-------------------------
 
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;
}
 
-------------------------
 
I hope this helps everyone. Good luck!
 
Jason (Shore)