Don't you have .htaccess file in fotos/ folder?
You should not escape the right part of expression.I found that both sides are regular expressions so I changed the code to
This is a discussion on vBSEO Functions for Extensibility within the General Discussion forums, part of the vBSEO SEO Plugin category; Don't you have .htaccess file in fotos/ folder? I found that both sides are regular expressions so I changed the ...
Don't you have .htaccess file in fotos/ folder?
You should not escape the right part of expression.I found that both sides are regular expressions so I changed the code to
Oleg Ignatiuk / Crawlability Inc.
vBSEO 3.6.0 GOLD Released!
Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!
Hi!
How do I obtain the absolute REQUEST_URI as it seems that vBSEO downloads the target rewritten page from the original location?
I wanted to use the folowing custom 301 redirect for all old PhotoPost pages based on the configured CRR:
But this results in an indefinite loop because the absolute REQUEST URI isn't visible, this might be due to that vBSEO downloads the target location via HTTP?PHP Code:include_once '../includes/functions_vbseo.php';
vbseo_get_options();
vbseo_prepare_seo_replace();
get_forum_info();
// 301 Redirect
//////////////
$rewritten_request_uri = vbseo_any_url($_SERVER["REQUEST_URI"]);
if ($rewritten_request_uri != $_SERVER["REQUEST_URI"]) {
header("HTTP/1.1 301 Moved Permanently");
header("Location: ".$rewritten_request_uri);
exit;
}
Best Regards,
Jan Jaap
Last edited by Adult SEO; 05-16-2007 at 06:44 AM.
[SIGPIC][/SIGPIC]
Hi!
Thanks a lot!
Adding the .htaccess works! (also with the escaped rightside regular expression in the 301 configuration)
Papegaaien Foto's - Main Index will redirect to /fotos.html on the root.
Best Regards,
Jan Jaap
Last edited by Adult SEO; 05-16-2007 at 06:44 AM.
[SIGPIC][/SIGPIC]
One more question.
Non rewritten pages are now 404, is there a setting to just alow access to non rewritten pages parsed via vBSEO?
For example http://www.papegaaienforum.com/fotos...ry.php?cat=502 is configured the folowing:
Best Regards,Code:'fotos/showgallery\.php\?cat=502$' => 'grijze-roodstaart-papegaaien/fotos.html'
Jan Jaap
Last edited by Adult SEO; 05-16-2007 at 06:45 AM.
[SIGPIC][/SIGPIC]
I don't understand why yet, but just the index 301 works. All other PHP pages are 404.
For example:
If you visit index.php the redirect will work, but ecard.php returns an 404. Also using just the redirect for ecard.php will return an 404 for ecard.php.Code:'fotos/index\.php$' => 'fotos.html' 'fotos/ecard\.php$' => 'fotos2.html'
ecard.php also includes pp-inc.php wich contains the vBSEO startcode.
http://www.papegaaienforum.com/fotos/ecard.php
Do you know the reason for this?
Best Regards,
Jan Jaap
Last edited by Adult SEO; 05-16-2007 at 06:45 AM.
[SIGPIC][/SIGPIC]
Hi!
How can I rewrite member urls via these extensions? As parsing /members.php?u=12 results in the folowing: /members/.html (no username).
Is this a bug?
Best Regards,
Jan Jaap
Last edited by Adult SEO; 05-16-2007 at 06:45 AM.
[SIGPIC][/SIGPIC]
This URL is opened fine for me.For example http://www.papegaaienforum.com/fotos...ry.php?cat=502 is configured the folowing:You can use vbseo_member_url_row($userid, $username) function for this.How can I rewrite member urls via these extensions?
Oleg Ignatiuk / Crawlability Inc.
vBSEO 3.6.0 GOLD Released!
Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!
Hi!
Thanks a lot!
Yes, I managed to set it up but just the 301 redirects remain not working.
Are the 301 redirects configured via the vBSEO admin only for "moved" documents wich do not exist anymore?
Best Regards,
Jan Jaap
Last edited by Adult SEO; 05-16-2007 at 06:46 AM.
[SIGPIC][/SIGPIC]
You are welcome!
Yes, they are only applied for links to non-existing pages.
Oleg Ignatiuk / Crawlability Inc.
vBSEO 3.6.0 GOLD Released!
Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!
Hi!
Could you please tell me how to obtain the absolute REQUEST_URI of a rewritten page?
Maybe there is a variable for it ?
Best Regards,
Jan Jaap
Last edited by Adult SEO; 05-16-2007 at 06:46 AM.
[SIGPIC][/SIGPIC]
You can use $_SERVER['VBSEO_URI'] for this.
Oleg Ignatiuk / Crawlability Inc.
vBSEO 3.6.0 GOLD Released!
Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!
The 301 works!
Papegaaien Foto's - Grijze Roodstaart Papegaaien
On top of pp-inc.php in PhotoPost:
Thanks a lot for the support, it's getting pretty nice.PHP Code:include_once '../includes/functions_vbseo.php';
vbseo_get_options();
vbseo_prepare_seo_replace();
get_forum_info();
$rewritten_request_uri = vbseo_any_url($_SERVER['VBSEO_URI']);
if ($rewritten_request_uri != $_SERVER['VBSEO_URI']) {
header("HTTP/1.1 301 Moved Permanently");
header("Location: ".$rewritten_request_uri);
header("Connection: close");
exit;
}
For example each category upload page is located in the directory of the specific forum. E.g. forum-directory/upload-photo.html and also the photo's itself are available within the forum directory like forum-directory/foto-1.html and forum-directory/gallery-1.html and forum-directory/user-galleries.html etc.
Best Regards,
Jan Jaap
Last edited by Adult SEO; 05-16-2007 at 06:46 AM.
[SIGPIC][/SIGPIC]
Hi!
As it seems
$forumurl = vbseo_forum_url($forumid, $pagenum); does not return the correct url in showthread.php, is this a bug?
Best Regards,
Jan Jaap
Last edited by Adult SEO; 05-16-2007 at 06:46 AM.
[SIGPIC][/SIGPIC]
http://www.papegaaienforum.nl/grijze...ie-mening.html
Shows print_r() of all parsed parrent forums.
The number->xxx is the forum ID just for testing purposes.Code:Array ( [0] => / [1] => 393->/ [2] => 394->/ [3] => / [4] => 396->/ [5] => 397->/ [6] => 398->/ [7] => 399->/ [8] => 400->/ [9] => / [10] => 411->/ [11] => 412->/ )
Last edited by Adult SEO; 05-16-2007 at 06:47 AM.
[SIGPIC][/SIGPIC]
Hello Jan,
do you have all required vBSEO function calls before calling vbseo_forum_url?
PHP Code:vbseo_get_options();
vbseo_prepare_seo_replace();
get_forum_info();
Oleg Ignatiuk / Crawlability Inc.
vBSEO 3.6.0 GOLD Released!
Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!