Page 19 of 26 FirstFirst ... 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 LastLast
Results 271 to 285 of 381
Like Tree8Likes

Create a Custom vBulletin "404 Page Not Found" Page, and direct vBSEO to use it.

This is a discussion on Create a Custom vBulletin "404 Page Not Found" Page, and direct vBSEO to use it. within the Member Articles forums, part of the Focus on Members category; If you're getting failed includes like this, your path settings in either the 404.php file or the vbseo CP include ...

  1. #271
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    If you're getting failed includes like this, your path settings in either the 404.php file or the vbseo CP include path is incorrect.

  2. #272
    Junior Member
    Real Name
    Bhanu Pratap
    Join Date
    Jun 2009
    Posts
    9
    Liked
    0 times
    Thanks for the reply

    Now getting

    Warning: Cannot modify header information - headers already sent by (output started at /home/xxxxxx/public_html/404.php:9) in /home/xxxxxxx/public_html/404.php on line 10

    Warning: Cannot modify header information - headers already sent by (output started at /home/xxxxxxx/public_html/404.php:9) in /home/xxxxxxxx/public_html/404.php on line 11

    Thanks in advance.

  3. #273
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    Make sure you don't have a space in the 404.php file above the <?php line. It must be the VERY first line in the file, no line break, no spaces.

  4. #274
    Junior Member
    Real Name
    Bhanu Pratap
    Join Date
    Jun 2009
    Posts
    9
    Liked
    0 times
    After removing the space now getting

    Warning: Cannot modify header information - headers already sent by (output started at /home/xxxxxxx/public_html/404.php:8) in /home/XXXXX/public_html/404.php on line 9

    Warning: Cannot modify header information - headers already sent by (output started at /home/xxxxx/public_html/404.php:8) in /home/xxxxxx/public_html/404.php on line 10


    http://www.consumercourt.in/404.php

  5. #275
    Junior Member
    Real Name
    Bhanu Pratap
    Join Date
    Jun 2009
    Posts
    9
    Liked
    0 times
    Sorry MY Mistake

    Its solved now. I have created a file in Dreamviewer and forget to remove the the above code.

    Million thanks in advance.

  6. #276
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    Glad it was an easy fix

  7. #277
    Junior Member
    Real Name
    luis
    Join Date
    Jun 2010
    Posts
    19
    Liked
    0 times
    Hi, i applid this trick with an htaccess, however any chances to include a search in the error?
    i would like to search the URL:
    user comes to site.com/forum/wrong-url/
    i would like to show him results for "wrong url"

  8. #278
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    Support is only offered to vbseo customers. If you hold a valid license, please opena ticket with your forum URL and transaction ID so we can assign your licese to your account.

  9. #279
    Senior Member Astyanax's Avatar
    Real Name
    Daniel
    Join Date
    Dec 2009
    Location
    Sweden
    Posts
    299
    Liked
    4 times
    "Create a new template named custom_404 and paste the following content into it".

    Paste where!?

  10. #280
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    When you create a new template, it's blank. that's the body of the template.

  11. #281
    Senior Member Astyanax's Avatar
    Real Name
    Daniel
    Join Date
    Dec 2009
    Location
    Sweden
    Posts
    299
    Liked
    4 times
    Ah sorry. My fault. I mistook template for style.

  12. #282
    Senior Member Astyanax's Avatar
    Real Name
    Daniel
    Join Date
    Dec 2009
    Location
    Sweden
    Posts
    299
    Liked
    4 times
    It does not seem to work for me. :(

  13. #283
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    replied to your ticket.

    remember to use the /PATH/TO/misc.php, not http://site.com/misc.php

  14. #284
    Member tafreehm's Avatar
    Real Name
    Hassan
    Join Date
    Dec 2009
    Posts
    69
    Liked
    3 times
    Does not seems to work... here is what i have done..

    Step 1: Created a new template in my default theme named it custom_404 then paste following code in there..
    Code:
    {vb:stylevar htmldoctype}
    <html xmlns="http://www.w3.org/1999/xhtml" dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}" id="vbulletin_html">
    <head>
     <!-- no cache headers -->
     <meta http-equiv="Pragma" content="no-cache" />
     <meta http-equiv="Expires" content="-1" />
     <meta http-equiv="Cache-Control" content="no-cache" />
     <!-- end no cache headers -->
     <title>Page Not Found - {vb:raw vboptions.bbtitle}</title>
     {vb:raw headinclude}
    </head>
    <body>
        {vb:raw header}
        
        {vb:raw navbar}
    <br />
    <div style="padding-left: 25px; padding-right: 25px; font-weight: bold;" align="center">
    Sorry, the page you have requested cannot be found.
    <br/><br/>
    You can try a <a href="{vb:raw vboptions.bburl}/search.php">search</a> if you are looking for something specific.
    </div>
     {vb:raw footer}
    </body>
    </html>
    Step 2: Created a file named 404.php with following content.
    Code:
    <?php
    header("HTTP/1.0 404 Not Found");
    header("Status: 404 Not Found");
    $_GET['do']='page';
    $_REQUEST['do']='page';
    $_GET['template']='404';
    $_REQUEST['template']='404';
    define('VBSEO_PREPROCESSED', 1);
    include '/usr/home/xxx/public_html/forums/misc.php';
    ?>
    Where xxx is my actuall username.

    And followed this step carefully.





    Quote Originally Posted by Ceri May View Post
    Then, in your vBSEO Control Panel, for the "File Not Found" requests handling? setting, enter the following. Again, you will need to customize this to point to the actual physical location of the 404.php file that you created in the previous step.
    Code:
    /usr/home/xxx/public_html/404.php
    Now here comes the trouble:
    When i access www.domain.com/404.php i get this

    Code:
    Warning:  include(/usr/home/xxx/public_html/misc.php) [function.include]:  failed to open stream: No such file or directory in /home/xxx/public_html/404.php  on line 9
    
    Warning:  include() [function.include]:  Failed opening '/usr/home/xxx/public_html/misc.php' for inclusion  (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxx/public_html/404.php  on line 9
    and when i visit a wrong link, its redirects me to /content.php ( /432125.php )

    Please Advice

  15. #285
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    From the error message, it looks like you have conflicting paths. You probably don't need /usr on your url. Check your php info page for your correct path.

Page 19 of 26 FirstFirst ... 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 LastLast

LinkBacks (?)


Tags for this Thread

Posting Permissions

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