SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    a fresh, new start... dujmovicv's Avatar
    Join Date
    Aug 2006
    Location
    Earth
    Posts
    559
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Rewrite URLs in Zend server

    Hi All,

    I have ZendServer installed on win7 with :
    Code:
    _SERVER["SERVER_SOFTWARE"]	Apache/2.2.21 (Win32) mod_ssl/2.2.21 OpenSSL/0.9.8o
    and
    Code:
    PHP Version 5.3.9-ZS5.6.0
    I have this .htaccess in the root of a website :
    Code:
    RewriteEngine on
    
    RewriteCond %{REQUEST_URI} business
    RewriteRule ^([a-zA-Z_]+)$ index.php?p=$1 [L]
    which was working OK @ my old webserver (Apache but NO Zend).
    I've searched some forums and according to the 'most common' solution/advice I changed
    Code:
    AllowOverride None
    INTO this :
    Code:
    AllowOverride All
    in Zend/Apache2/conf/httpd.conf file. File saved, PHP restarted but the url rewrite still doesn't work (I got Not Found message).
    Any help will be highly appreciated!!!!

    Full time ADMIN - art community
    Part time coder - dsign

  2. #2
    Certified Ethical Hacker silver trophybronze trophy dklynn's Avatar
    Join Date
    Feb 2002
    Location
    Auckland
    Posts
    14,672
    Mentioned
    19 Post(s)
    Tagged
    3 Thread(s)
    Welcome back!

    Zend server, eh? That's a new one on me, however, if it uses Apache2 as shown, let me ask whether you're running on a WinDoze box or a 'Nix box BECAUSE your path looks like WinDoze whereas 'Nix's configuration file is known as Apache2.conf which should have

    Code:
    <Directory />
        Options FollowSymLinks
        AllowOverride All
    </Directory>
    Both are required.

    Looking at my tutorial article, too, are you sure that mod_rewrite's been enabled (comment # removed)?

    Regards,

    DK
    David K. Lynn - Data Koncepts is a long-time WebHostingBuzz (US/UK)
    Client and (unpaid) WHB Ambassador
    mod_rewrite Tutorial Article (setup, config, test & write
    mod_rewrite regex w/sample code) and Code Generator

  3. #3
    a fresh, new start... dujmovicv's Avatar
    Join Date
    Aug 2006
    Location
    Earth
    Posts
    559
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you David for trying to help me!
    At the moment this issue is not so important - in the meantime some other stuff came in so I gave up to configure the URL redirect on Zend server. Thanks anyway and sorry for wasting your time...

    Full time ADMIN - art community
    Part time coder - dsign

  4. #4
    Certified Ethical Hacker silver trophybronze trophy dklynn's Avatar
    Join Date
    Feb 2002
    Location
    Auckland
    Posts
    14,672
    Mentioned
    19 Post(s)
    Tagged
    3 Thread(s)
    No worries!

    You know how to get a hold of me when you need help (thread/PM/Skype) so I'll be available when you need me.

    Regards,

    DK
    David K. Lynn - Data Koncepts is a long-time WebHostingBuzz (US/UK)
    Client and (unpaid) WHB Ambassador
    mod_rewrite Tutorial Article (setup, config, test & write
    mod_rewrite regex w/sample code) and Code Generator


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
  •