[2023-01-23] 4images 1.10 released
0 Members and 1 Guest are viewing this topic.
Hi,You can create a Google Sitemap for your Gallery to improve traffic to your site.You must install the Search Engine friendly MOD before use this file.1. Upload the file google.php to the root folder of 4images.2. Modify the .htaccess to rewrite the URL of sitemap.Code: [Select]RewriteRule ^sitemap.xml$ google.phpNow the URL of sitemap is: http://www.yourdomain.com/sitemap.xmlYou can send a ping to Google to notify your new sitemap by this way: http://www.google.com/webmasters/sitemaps/ping?sitemap=URL_TO_YOUR_SITEMAPGood luck!Mai
RewriteRule ^sitemap.xml$ google.php
Just Download google.zip
I'm having the same problem others are that are using the Search Engine Friendly URLs aka Short URLs mod found here: http://www.4homepages.de/forum/index.php?topic=6729.0My new image url's are like this: http://www.domain.com/image-demon-236.htm, but the sitemap is showing the urls like this: http://www.domain.com/img236.htm, which is the old url structure.Can I fix this?
$categories = mysql_query('SELECT cat_id FROM ' . $table_prefix . 'categories');
$categories = mysql_query('SELECT cat_id, cat_name FROM ' . $table_prefix . 'categories');
$catid = $category['cat_id'];
$cat_name = $category['cat_name'];
$cat_url = $gallery_url.'cat'.$catid.'.htm';
$cat_url = $gallery_url.'cat-'.$cat_name.'-'.$catid.'.htm';
$images = mysql_query('SELECT image_id,image_active,image_date FROM ' . $table_prefix . 'images ');
$images = mysql_query('SELECT image_id,image_name,image_active,image_date FROM ' . $table_prefix . 'images ');
$imgid = $image['image_id'];
$imgna = $image['image_name'];
$img_url = $gallery_url.'img'.$imgid.'.htm';
$img_url = $gallery_url.'img'.$image_name.'-'.$imgid.'.htm';
$shortURL = 1;
$shortURL = 0;
Warning: require(config.php) [function.require]: failed to open stream: No such file or directory in /home2/estampaf/public_html/google.php on line 9Warning: require(config.php) [function.require]: failed to open stream: No such file or directory in /home2/estampaf/public_html/google.php on line 9Fatal error: require() [function.require]: Failed opening required 'config.php' (include_path='.:/usr/lib/php:/usr/local/lib/php:/home2/estampaf/php') in /home2/estampaf/public_html/google.php on line 9