SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Addict
    Join Date
    Dec 2006
    Posts
    378
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question The requested URL was not found.. - base url works but deeper links dont?

    I just installed a mini cms and I have added this site to my virtual host files. The base url is:
    minicms.local

    When I go to minicms.local in the browser I see the homepage correctly but when i click on a link thats past the index.php i get this browser message:
    Not Found

    The requested URL /whatson/ was not found on this server.
    wth is going on?

    I think it may have something to do with the .htaccess file in this site? because in the .htaccess file there is this:

    RewriteRule ^whatson$ /whatson/ [R]
    RewriteRule ^whatson/(template=([a-zA-Z]+))?$ /index.php?content=whatson&template=$2

    If i go to the long url it works but the shortened version doesnt?

    basically this should work but doesnt:
    minicms.local/whatson

    instead i get this:
    Not Found

    The requested URL /whatson/ was not found on this server.

    and for some strange reason this link works and shows me the webpage correctly:
    minicms.local/index.php?content=whatson&template=$2

    in the .htaccess file i have this at the top:
    RewriteEngine on

    If anyone has any ideas why the minicms.local/whatson/ doesnt work please let me know!?

    P.S.
    I just installed Apache, MySQL, PHP/phpMyadmin yesterday. I have the latest downloads for all of these. I dont know if this would cause a problem? I don't really want to revert to the older versions just to see if this fixes it. I am on XP 64bit and the only official XP 64bit installer was for MySQL the rest are standard 32bit. I hope I have given you enough information if not please ask me what more information you need?

  2. #2
    Twitter: @AnthonySterling silver trophy AnthonySterling's Avatar
    Join Date
    Apr 2008
    Location
    North-East, UK.
    Posts
    6,111
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Have you enabled mod_rewrite in Apache?
    @AnthonySterling: I'm a PHP developer, a consultant for oopnorth.com and the organiser of @phpne, a PHP User Group covering the North-East of England.

  3. #3
    SitePoint Addict
    Join Date
    Dec 2006
    Posts
    378
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ya i think so?
    #LoadModule proxy_http_module modules/mod_proxy_http.so
    LoadModule rewrite_module modules/mod_rewrite.so
    LoadModule setenvif_module modules/mod_setenvif.so
    #LoadModule speling_module modules/mod_speling.so

  4. #4
    SitePoint Addict
    Join Date
    Dec 2006
    Posts
    378
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    For some strange reason when I click on a link that goes to a form it works.. Example:
    http://minicms.local/forms/contact/

    I guess this is because the contact form actually exists in that location the url is not being rewritten..

  5. #5
    SitePoint Addict
    Join Date
    Dec 2006
    Posts
    378
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    any more help?

    should i install an old version of php and apache?

  6. #6
    SitePoint Addict
    Join Date
    Dec 2006
    Posts
    378
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ive tried reverting to an older version of PHP (5.2.6) and it still doesnt work.

    Why doesnt my url rewrite work?

    This site works on my other computer and it used on a live site. What could be preventing and causing this message:
    Not Found

    The requested URL /whatson/ was not found on this server.


Bookmarks

Posting Permissions

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