Page 1 of 2 12 LastLast
Results 1 to 15 of 17

Thread: mod-rewrite...404 error

  1. #1
    Join Date
    Dec 2007
    Posts
    14

    Default mod-rewrite...404 error

    hi

    have enabled the mod-rewrite...getting 404 error

    i don't know if its a .htaccess problem have uploaded the orginal file(.htaccess) chmod 777.... Here is the file..thanks in advance for any suggestions.

    # INDEXU-START

    # DO NOT CHANGE THE FOLLOWING LINES
    # status: 1
    # pattern_category: {$cat_path}/more{$page}.html
    # pattern_detail: detail/{$link_id}/{$link_title}.html
    # pattern_tag: tag/{$tag}/more{$page}.html

    Options -MultiViews
    RewriteEngine On

    RewriteRule ^detail/(.*)/(.*).html detail.php?linkid=$1
    RewriteRule ^tag/(.*)/more(.*).html browsetag.php?tag=$1&pg_which=$2
    RewriteRule ^tag/(.*) browsetag.php?tag=$1
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-l
    RewriteRule ^.* browse.php

    # INDEXU-END

  2. #2
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    Who's your host?

    Remove options - multiviews and replace with rewrite base/

  3. #3
    Join Date
    Jul 2006
    Location
    Paris, France
    Posts
    108

    Default

    If your host is 1&1, just read my suggestion here :

    http://www.nicecoder.com/community/s...taccess+modify

  4. #4
    Join Date
    Dec 2007
    Posts
    14

    Default rewritebase

    Have removed.... options - multiviews.... and replaceed it with rewrite base/

    I am now getting..
    Error 404 - Page Not Found
    The requested URL /browse.php was not found on this server.

    mod-rewrite is on..

    When I type in e.g... http://www.mywebsite/browse.php?cat=3

    Works Fine...

  5. #5
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    Sorry about that, your post was moderated because you posted a URL.

    Who is your webhost? Is mod_rewrite enabled? To find out go to www.yoursite.com/admin/phpinfo.php and search for "mod"

  6. #6
    Join Date
    Dec 2007
    Posts
    14

    Default

    my host is netfirms.com

    have mod-rewrite enabled

    unable to find mod @ /admin/phpinfo.php

  7. #7
    Join Date
    May 2007
    Location
    NJ, United States
    Posts
    1,651

    Default

    Look at your phpinfo file
    Under Apache look for "Loaded Modules" - Its the last line under Apache
    If mod-rewrite is installed, one of the loaded modules should be "mod_rewrite"
    FSGDAG | IndexU Hosting | Owner
    Website | NiceCoder Script Hosting and More! | Web4URL is For Sale!
    Follow Us On Twitter | FaceBook Profile | YouTube Videos

  8. #8
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    paste your .htaccess file here. After looking at the netfirms support site I'm pretty sure the fix is just as Mickey had posted about 1&1.

  9. #9
    Join Date
    Dec 2007
    Posts
    14

    Default

    hi

    tried mickeys workaround no success,
    have tried the rewritebase below the indexu end

    heres my .htaccess
    have included the .htaccess commands are supported page for my host

    support.netfirms.com/article.php?id=153

    sorry for been a pest guys
    .................................................. ............

    # INDEXU-START

    # DO NOT CHANGE THE FOLLOWING LINES
    # status: 1
    # pattern_category: {$cat_path}/more{$page}.html
    # pattern_detail: detail/{$link_id}/{$link_title}.html
    # pattern_tag: tag/{$tag}/more{$page}.html

    RewriteBase /
    RewriteEngine On

    RewriteRule ^detail/(.*)/(.*).html detail.php?linkid=$1[l]
    RewriteRule ^tag/(.*)/more(.*).html browsetag.php?tag=$1&pg_which=$2
    RewriteRule ^tag/(.*) browsetag.php?tag=$1
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-l
    RewriteRule ^.* /browse.php [l]

    # INDEXU-END

  10. #10
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    Try using the following

    # INDEXU-START

    # DO NOT CHANGE THE FOLLOWING LINES
    # status: 1
    # pattern_category: {$cat_path}/more{$page}.html
    # pattern_detail: detail/{$link_id}/{$link_title}.html
    # pattern_tag: tag/{$tag}/more{$page}.html

    RewriteBase /
    RewriteEngine On

    RewriteRule ^detail/(.*)/(.*).html /detail.php?linkid=$1
    RewriteRule ^tag/(.*)/more(.*).html /browsetag.php?tag=$1&pg_which=$2
    RewriteRule ^tag/(.*) /browsetag.php?tag=$1
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-l
    RewriteRule ^.* /browse.php

    # INDEXU-END

  11. #11
    Join Date
    Nov 2004
    Posts
    1,822

    Default

    or if that doesn't work try removing :
    RewriteBase /

    as well


    Quote Originally Posted by Bruceper View Post
    Try using the following

    # INDEXU-START

    # DO NOT CHANGE THE FOLLOWING LINES
    # status: 1
    # pattern_category: {$cat_path}/more{$page}.html
    # pattern_detail: detail/{$link_id}/{$link_title}.html
    # pattern_tag: tag/{$tag}/more{$page}.html

    RewriteBase /
    RewriteEngine On

    RewriteRule ^detail/(.*)/(.*).html /detail.php?linkid=$1
    RewriteRule ^tag/(.*)/more(.*).html /browsetag.php?tag=$1&pg_which=$2
    RewriteRule ^tag/(.*) /browsetag.php?tag=$1
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-l
    RewriteRule ^.* /browse.php

    # INDEXU-END
    Main IndexU sites : | Campsite Directory | Tourist Guide | Places2B | AfterDirectory <-- Half price submission using coupon DP50 (from just $11 premium, and $10 basic permanent )

  12. #12
    Join Date
    Dec 2007
    Posts
    14

    Default

    tried those two suggestions..

    still getting on category pages... Error 404 - Page Not Found
    The requested URL /browse.php was not found on this server.

  13. #13
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    Remember that you need to update your category path every time you change the .htaccess

    Have you been doing that?

  14. #14
    Join Date
    Dec 2007
    Posts
    14

    Default

    yes have been updating your category path in admin, i am sure it's something simple that i am overlooking

  15. #15
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    Perhaps something overlooked indeed. Did you log into your netfirms control panel and enable .htaccess?

    To configure URL forwarding using mod_rewrite:

    I. ENABLE .HTACCESS
    Login to the Netfirms Control Panel at https://controlpanel.netfirms.com
    Click Site Tools
    Click .htaccess
    Enable .htaccess

Similar Threads

  1. Replies: 0
    Last Post: 10-26-2006, 03:57 AM
  2. Mod-rewrite error?
    By lafa2003 in forum v5.x
    Replies: 2
    Last Post: 09-25-2006, 07:36 PM
  3. Mod rewrite help
    By nealdj in forum v5.x
    Replies: 4
    Last Post: 07-17-2006, 08:05 PM
  4. v5.0.1 - mod-rewrite & rss
    By alfo in forum v5.x
    Replies: 6
    Last Post: 01-06-2006, 01:34 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
  •