Page 4 of 17 FirstFirst 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 LastLast
Results 46 to 60 of 242

vBSEO Functions for Extensibility

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 ...

  1. #46
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    Don't you have .htaccess file in fotos/ folder?
    I found that both sides are regular expressions so I changed the code to
    You should not escape the right part of expression.
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  2. #47
    Senior Member
    Real Name
    Jan Jaap
    Join Date
    May 2006
    Location
    The Netherlands
    Posts
    132
    Liked
    0 times
    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:

    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;

    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?

    Best Regards,
    Jan Jaap
    Last edited by Adult SEO; 05-16-2007 at 06:44 AM.
    [SIGPIC][/SIGPIC]

  3. #48
    Senior Member
    Real Name
    Jan Jaap
    Join Date
    May 2006
    Location
    The Netherlands
    Posts
    132
    Liked
    0 times
    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]

  4. #49
    Senior Member
    Real Name
    Jan Jaap
    Join Date
    May 2006
    Location
    The Netherlands
    Posts
    132
    Liked
    0 times
    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:

    Code:
    'fotos/showgallery\.php\?cat=502$' => 'grijze-roodstaart-papegaaien/fotos.html'
    Best Regards,
    Jan Jaap
    Last edited by Adult SEO; 05-16-2007 at 06:45 AM.
    [SIGPIC][/SIGPIC]

  5. #50
    Senior Member
    Real Name
    Jan Jaap
    Join Date
    May 2006
    Location
    The Netherlands
    Posts
    132
    Liked
    0 times
    I don't understand why yet, but just the index 301 works. All other PHP pages are 404.

    For example:

    Code:
    'fotos/index\.php$' => 'fotos.html'
    'fotos/ecard\.php$' => 'fotos2.html'
    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.

    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]

  6. #51
    Senior Member
    Real Name
    Jan Jaap
    Join Date
    May 2006
    Location
    The Netherlands
    Posts
    132
    Liked
    0 times
    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]

  7. #52
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    For example http://www.papegaaienforum.com/fotos...ry.php?cat=502 is configured the folowing:
    This URL is opened fine for me.
    How can I rewrite member urls via these extensions?
    You can use vbseo_member_url_row($userid, $username) function 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!


  8. #53
    Senior Member
    Real Name
    Jan Jaap
    Join Date
    May 2006
    Location
    The Netherlands
    Posts
    132
    Liked
    0 times
    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]

  9. #54
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    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!


  10. #55
    Senior Member
    Real Name
    Jan Jaap
    Join Date
    May 2006
    Location
    The Netherlands
    Posts
    132
    Liked
    0 times
    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]

  11. #56
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    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!


  12. #57
    Senior Member
    Real Name
    Jan Jaap
    Join Date
    May 2006
    Location
    The Netherlands
    Posts
    132
    Liked
    0 times
    The 301 works!

    Papegaaien Foto's - Grijze Roodstaart Papegaaien

    On top of pp-inc.php in PhotoPost:
    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("Connectionclose");
     exit;

    Thanks a lot for the support, it's getting pretty nice.

    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]

  13. #58
    Senior Member
    Real Name
    Jan Jaap
    Join Date
    May 2006
    Location
    The Netherlands
    Posts
    132
    Liked
    0 times
    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]

  14. #59
    Senior Member
    Real Name
    Jan Jaap
    Join Date
    May 2006
    Location
    The Netherlands
    Posts
    132
    Liked
    0 times
    http://www.papegaaienforum.nl/grijze...ie-mening.html

    Shows print_r() of all parsed parrent forums.

    Code:
    Array ( [0] => / [1] => 393->/ [2] => 394->/ [3] => / [4] => 396->/ [5] => 397->/ [6] => 398->/ [7] => 399->/ [8] => 400->/ [9] => / [10] => 411->/ [11] => 412->/ )
    The number->xxx is the forum ID just for testing purposes.
    Last edited by Adult SEO; 05-16-2007 at 06:47 AM.
    [SIGPIC][/SIGPIC]

  15. #60
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    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!


Page 4 of 17 FirstFirst 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 LastLast

Similar Threads

  1. vBSEO 2.4.0 Released - Includes Google AdSense Targeting Feature!
    By Juan Muriente in forum vBSEO Announcements
    Replies: 74
    Last Post: 05-20-2006, 10:29 PM
  2. vBSEO 2.0 RC7 Released
    By Juan Muriente in forum vBSEO Announcements
    Replies: 17
    Last Post: 09-09-2005, 12:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •