Results 1 to 3 of 3

Problem with URL rewriting and Error 404

This is a discussion on Problem with URL rewriting and Error 404 within the General Discussion forums, part of the vBSEO SEO Plugin category; Hi I have the following problem, please need help. URLs are defined in my default is " vBSEO " Example: ...

  1. #1
    Member
    Real Name
    cprade
    Join Date
    Apr 2008
    Posts
    46
    Liked
    0 times

    Problem with URL rewriting and Error 404

    Hi
    I have the following problem, please need help.

    URLs are defined in my default is "vBSEO"
    Example: mysite.com/f2, mysite.com/f15, ....

    What I want is to replace /f2 by the following /forum name:
    Example: mysite.com/f2 = mysite.com/general

    Then I set up URL rewriting in options "vBSEO" and then I added the following lines to the file ".htaccess":

    # Forum
    RewriteRule ^f([0-9]+)/$ vbseo.php?vbseourl=forumdisplay.php&f=$1 [L]
    # Forum Pagination
    RewriteRule ^f([0-9]+)/index([0-9]+)\.htm$ vbseo.php?vbseourl=forumdisplay.php&f=$1&page=$2 [L]
    # Threads
    RewriteRule ^f[0-9]+/.+-([0-9]+)\.htm$ vbseo.php?vbseourl=showthread.php&t=$1 [L]
    Until then everything works without a glitch

    ------------------
    The problem I have after doing the above, is as follows:

    1.- Before making changes, when the url was: misitio.com/f2
    If a user enters a URL that did not exist, eg mysite.com/blablabla, my site returned the page "Error 404", just as I have it configured.


    2.- After making changes, when the url is: misitio.com/forum name
    If a user enters a URL that does not exist, eg mysite.com/blablabla, my site returns the following message:
    "No Thread specified. If You Follow a valid link, please notify the administrator "
    Why is this problem, I want to return the page "Error 404", as it was working before.

    What do I have to do?
    I have vBulletin 3.8.4

  2. #2
    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
    Hello,

    you should remove all of that and just change your forum url formats within vbseoCP to use [forum_name] instead of f[forum_id]

  3. #3
    Member
    Real Name
    cprade
    Join Date
    Apr 2008
    Posts
    46
    Liked
    0 times
    That's what I did, but if I add those lines in ".htaccess"

    When someone enters /f2, the website does not redirect to the forum /general

Similar Threads

  1. Another Rewriting error - Help
    By BlackberryOS in forum URL Rewrite Settings
    Replies: 6
    Last Post: 09-02-2009, 02:41 PM
  2. A small url rewriting problem
    By teenhut in forum URL Rewrite Settings
    Replies: 21
    Last Post: 04-21-2009, 09:57 AM
  3. Problem on rewriting
    By jarod1981® in forum URL Rewrite Settings
    Replies: 3
    Last Post: 12-08-2006, 08:31 PM
  4. Problem with Rewriting
    By Rehan in forum Troubleshooting
    Replies: 3
    Last Post: 11-10-2006, 07:19 AM
  5. Problem with Member rewriting
    By archimedes in forum Troubleshooting
    Replies: 1
    Last Post: 09-26-2005, 08:48 PM

Posting Permissions

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