Apache + mod_rewrite

i've got a problem with mod_rewrite - it doesn't work.
(~)$ cat /etc/httpd/conf/httpd.conf| grep mod_rewrite
LoadModule rewrite_module modules/mod_rewrite.so
(~)$ cat /home/httpd/html/.htaccess
Options FollowSymLinks
RewriteEngine On
RewriteRule ^index.html$ index.php [L]
http://localhost/index.php works fine but http://localhost/index.html gives 404 error
could someone know, where the fsck is problem?
btw sorry for my english if i made some mistakes. i'm from poland

thanks. it was allowoverride's fault.
and btw i've got another problem. apache don't parse php files when them are in different directory than "/home/httpd/html", e.g. if i set DocumentRoot (and <Directory "..."> too, of course) to "/mnt/data/htdocs". why?
Last edited by dawidgarus (2007-12-30 16:40:18)

Similar Messages

  • Apache mod_rewrite with virtual sites

    Hello,
    I have a number of development websites located in /Users/myusername/Sites/* that I can browse to easily as http://myhostname/~myusername/siteOneName etc. Works fine.
    Some of the sites are images of production Joomla sites I maintain, and they work fine too.
    HOWEVER, I need to enable mod_rewrite to match the production. As it is, the URLs for pages in my local site are ugly data-search page numbers rather than the easy-viewing SEF addresses like "about-us" or "product-1" etc.
    In /etc/apache2/httpd.conf
    LoadModule rewrite_module is okay
    AllowOverride All is set in the .htaccess section
    .htaccess is present the the root of the Joomla site and contains "RewriteEngine On."
    In /etc/apache2/users/myusername.conf
    AllowOverride All is set
    I tried setting up a virtual site in apache2/other, but I didn't know what I was doing and it didn't work.
    There's something I'm missing here.
    Ideas?

    Discussions is intended for discussions of Apple products. The Apache server is not an Apple product like say Snow Leopard, but a project of the Apache Software Foundation. Documentation, FAQ's, & tutorials for its use are available through http://httpd.apache.org/, but the foundation provides no official support. Support is available from commercial sources, some of which are listed at http://www.apache.org/info/support.cgi.
    You also might want to post a detailed description of your issue in the UNIX forums here, but posting in the Installation and Setup sub-category of the Snow Leopard one is unlikely to get you the attention of many Apache experts.

  • Apache mod_rewrite and mod_wl together

    Hi everybody,
    I'm having a problem with apache (1.3.27 on linux) mod_rewrite and mod_wl.
    The httpd.conf looks like this:
    RewriteEngine on
    RewriteCond %{QUERY_STRING} Id=100
    RewriteRule ^/dynamic/tops$ /static/100.html [P]
    <Location /dynamic>
    SetHandler weblogic-handler
    </Location>
    Background:
    http://www.my.domain/dynamic/tops?Id=100 is requested very often, also the
    updates of this information is not very often.
    So a cronjob is requesting this information and writting the result as
    apache/htdocs/static/100.html.
    Because of the links inside the document, I can't link to it with the static
    path, I must use the dynamic path.
    The rule is working fine when I do a redirect (can't do that for other
    reasons)
    Proxying the request will work if I remove the weblogic-handler of the
    httpd.conf.
    But if I want to run it like that configuration above I see the page is
    created by the weblogic server and not the static one.
    Has anyone an idea what to do.
    Martin

    Hi everybody,
    I'm having a problem with apache (1.3.27 on linux) mod_rewrite and mod_wl.
    The httpd.conf looks like this:
    RewriteEngine on
    RewriteCond %{QUERY_STRING} Id=100
    RewriteRule ^/dynamic/tops$ /static/100.html [P]
    <Location /dynamic>
    SetHandler weblogic-handler
    </Location>
    Background:
    http://www.my.domain/dynamic/tops?Id=100 is requested very often, also the
    updates of this information is not very often.
    So a cronjob is requesting this information and writting the result as
    apache/htdocs/static/100.html.
    Because of the links inside the document, I can't link to it with the static
    path, I must use the dynamic path.
    The rule is working fine when I do a redirect (can't do that for other
    reasons)
    Proxying the request will work if I remove the weblogic-handler of the
    httpd.conf.
    But if I want to run it like that configuration above I see the page is
    created by the weblogic server and not the static one.
    Has anyone an idea what to do.
    Martin

  • Apache Mod_Rewrite in an Alias

    Hello,
    I have mod_rewrite working just fine for files that are in /srv/http. I copied my test files to another directory where I have an alias pointing and tried them there but was not able to get it working. Is anyone able to spot what I am doing wrong? Here are my configs:
    Relevant portions of httpd.conf
    Alias /tv "/home/username/a/folder/path"
    <Directory "/home/username/a/folder/path">
    Order allow,deny
    Options FollowSymLinks
    Allow from all
    AllowOverride All
    </Directory>
    Let me know if there are other files that would help.
    Edit:
    So I have been doing a bit more research. In the end I am trying to get codeigniter installed and running on my.ip.address/tv. I have found this page from code igniter on the topic which says that the mod_rewrite stuff can be done in the http.conf file. Scroll to the very bottom to see what I am talking about.
    http://codeigniter.com/wiki/mod_rewrite
    So going off of that, here is what I am trying to use. Please let me know which portion I need to change if you can spot any problems.
    Alias /tv "/home/username/a/folder/path"
    <Directory "/home/username/a/folder/path">
    Order allow,deny
    Options FollowSymLinks
    Allow from all
    AllowOverride All
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php/$1 [L]
    </Directory>
    Last edited by Abadon125 (2012-02-11 07:50:45)

    OK, as part of my work-avoidance for the day, I have replicated the work I did in NZ on my other laptop.
    I put this in httpd.conf
    Alias /junk C:/webroots/junk
    <Directory "C:/webroots/junk">
        Options Indexes FollowSymLinks
        AllowOverride None
        Order allow,deny
        Allow from all
        RewriteEngine  on
        RewriteBase    /junk/
        RewriteRule (.*) $1 [E=MYCUSTOMVARIABLE:mycustomvalue]
    </Directory>
    And my test code is this:
    <cfoutput>
    CGI.MYCUSTOMVARIABLE = [#CGI.MYCUSTOMVARIABLE#]<br />
    </cfoutput>
    I restart Apache, run the template, and I get this:
    CGI.MYCUSTOMVARIABLE = [mycustomvalue]
    How does this differ from what you're doing?
    Adam

  • Apache mod_rewrite, htaccess and virtual host

    Does not appear that the htaccess file is doing anything at all; I tested with a 301 redirect and even put some random nonsense in it in hopes to provoke a server error and nothing.
    httpd.conf : http://pastebin.com/36qFCg5q
    httpd-vhosts.conf
    <VirtualHost *:80>
        DocumentRoot "/Users/jwindhall/Railo/tomcat/webapps/ROOT/dentist_app"
        ServerName xxx.com
        ServerAlias www.xxx.com
    <Directory "/Users/jwindhall/Railo/tomcat/webapps/ROOT/dentist_app">
        Options All Includes Indexes
        Order allow,deny
        Allow from all
        AllowOverride All
    </Directory>
    ProxyRequests Off
    <Proxy *>
    Options All Includes Indexes
    Order allow,deny
    Allow from all
    AllowOverride All
    </Proxy>
    ProxyPass / http://www.xxx.com:8080/
    ProxyPassReverse / http://www.xxx.com:8080/
    </VirtualHost>
    jwindhall.conf:
    <Directory "/Users/jwindhall/Railo/tomcat/webapps/ROOT/dentist_app">
    Options Indexes MultiViews FollowSymlinks
    AllowOverride All
    Order allow,deny
    Allow from all
    </Directory>

    The question etresoft was asking was around what goal or end or configuration you were trying to achieve here, and not who you might be.  With some background on the problem and on the particular goal, we might be able to provide you with a more direct solution, or debug the error. 
    It looks like you're trying to run some Tomcat stuff.  Something like this?
    Though that articile doesn't indicate it, the provided set-up there looks to be specific to OS X client.  Are you running OS X Server, or OS X client.  And in either case, which version?   (The management user interfaces do vary here, both by client and server, and by version.)
    The article also looks to be for 10.6 or earlier, or it presumes that you have Java installed.  That's not the default, so that's something you'll need to establish.
    Apache redirects do work on OS X and OS X Server.  If you're just testing that, get rid of Java and Tomcat and the rest (from your configuration test) and test just the URL redirects.
    Apache is also sensitive to file protections and ownerships, as it strives to avoid allowing an attacker at your whole system (by default), though those protections can be overridden.
    As a first step toward troubleshooting your current configuration, invoke the Apache configuration test on your system and see if it tosses any errors, and also check the Apache server logs for relevant errors.  The logs are usually in the /var/log/apache2 directory, though that can be changed.  This'll make sure the core giblets are working.  The next steps would usually then involve checking the protections on the web directories, and then testing Java and Tomcat individually.
    OS X Server is a little more simple to set up and (mostly) avoids needing to access the configuration files, and the directories and related are IMO a little easier to deal with; you're using Server Admin.app or Server.app (depending on the OS X Server version) to manage all that, and not a text editor.
    And you may already be aware of this; do not try to use a GUI editor to edit the configuration files.  TextWrangler will work here, but most other GUI editors won't.  Using a command-line editor is more common; nano or vim or emacs or such.  FWIW.

  • Apache mod_rewrite CGI Variables in ColdFusion

    I have an environment that consists of Apache 2.2.8 and ColdFusion 8 running on Solaris 10.
    I am attempting to pass a CGI variable to ColdFusion as part of an Apache Rewrite rule, however I am not able to do so.
    The Rewrite rule set exists as follows:
    RewriteCond %{SSL:SSL_PROTOCOL} ^TLSv1$
    RewriteCond %{HTTP_REFERER} !^$ [NC]
    RewriteRule ^.*$ %{HTTP_REFERER}?result=pass [L,R,E=HTTP_MYVAR:rw]
    The rule set works with the exception of the availability of the CGI variable HTTP_MYVAR within the ColdFusion CGI scope.
    I am testing for the existance of the variable within ColdFusion as follows:
    <cfif (structkeyexists(cgi, 'CGI.HTTP_MYVAR'))>
       CGI.HTTP_MYVAR exists as:<cfoutput>#CGI.HTTP_MYVAR#</cfoutput>
    <cfelse>
       CGI.HTTP_MYVAR does not exist.
    </cfif>
    Does anyone have experience creating variables in an Apache Rewrite rule set and evaluating them in ColdFusion?
    Thanks in advance for any assistance.

    OK, as part of my work-avoidance for the day, I have replicated the work I did in NZ on my other laptop.
    I put this in httpd.conf
    Alias /junk C:/webroots/junk
    <Directory "C:/webroots/junk">
        Options Indexes FollowSymLinks
        AllowOverride None
        Order allow,deny
        Allow from all
        RewriteEngine  on
        RewriteBase    /junk/
        RewriteRule (.*) $1 [E=MYCUSTOMVARIABLE:mycustomvalue]
    </Directory>
    And my test code is this:
    <cfoutput>
    CGI.MYCUSTOMVARIABLE = [#CGI.MYCUSTOMVARIABLE#]<br />
    </cfoutput>
    I restart Apache, run the template, and I get this:
    CGI.MYCUSTOMVARIABLE = [mycustomvalue]
    How does this differ from what you're doing?
    Adam

  • Includes from list, Dynamic list/form and Apache mod_rewrite

    Hi, I have:
    index.php (with includes from list)
    activity.php (a dynamic list as included page)
    activity_edit.php (a dynamic form as included page)
    I want to use SEO friendly url.
    But links from my "List" pointing my "Form" (edit, add new) don't work
    Is there a way? Thanks
    Gabriele

    Hi, I have:
    index.php (with includes from list)
    activity.php (a dynamic list as included page)
    activity_edit.php (a dynamic form as included page)
    I want to use SEO friendly url.
    But links from my "List" pointing my "Form" (edit, add new) don't work
    Is there a way? Thanks
    Gabriele

  • Jsp and apache mod_rewrite

    Hi All
    I'm using urlrewritefilter (http://code.google.com/p/urlrewritefilter/). i want that when I click the link
    (ie http://localhost:8080/project/html/aboutus) it should take me to the page http://localhost:8080/project/html/about.html
    but the url written in the address bar of browser must be http://localhost:8080/project/html/aboutus
    the rule I've written in urlrewrite.xml is:
    *<rule>*
    *<from>^/html/aboutus$</from>*
    *<to type="redirect">/persontation/html/about.html</to>*
    *</rule>*
    I'll extremly be grateful to all of you if you guide what to do more. what do i need to add or whatever. how is it possible? I need its solution urgently.
    bundle of thanks in advance for all of you.

    Hi All
    I'm using urlrewritefilter (http://code.google.com/p/urlrewritefilter/). i want that when I click the link
    (ie http://localhost:8080/project/html/aboutus) it should take me to the page http://localhost:8080/project/html/about.html
    but the url written in the address bar of browser must be http://localhost:8080/project/html/aboutus
    the rule I've written in urlrewrite.xml is:
    <rule>
    <from>^/html/aboutus$</from>
    <to type="redirect">/persontation/html/about.html</to>
    </rule>
    I'll extremly be grateful to all of you if you guide what to do more. what do i need to add or whatever. how is it possible? I need its solution urgently.
    bundle of thanks in advance for all of you.

  • Apache in testing dosen't work

    i install apache mysql and php in testing repo.
    but apache dosen't work.
    $ sudo /etc/rc.d/httpd start
    :: Starting HTTP Daemon                                                  [FAIL]
    $ sudo /usr/sbin/apachectl start
    httpd: Syntax error on line 232 of /etc/httpd/conf/httpd.conf: Cannot load /usr/lib/apache/mod_access.so into server: /usr/lib/apache/mod_access.so: cannot open shared object file: No such file or directory
    there is not mod_access.so. hwo to run appache daemon?
    $ pacman -Ql apache | grep /usr/lib/apache/mod
    apache /usr/lib/apache/mod_actions.so
    apache /usr/lib/apache/mod_alias.so
    apache /usr/lib/apache/mod_asis.so
    apache /usr/lib/apache/mod_auth_basic.so
    apache /usr/lib/apache/mod_auth_digest.so
    apache /usr/lib/apache/mod_authn_anon.so
    apache /usr/lib/apache/mod_authn_dbd.so
    apache /usr/lib/apache/mod_authn_dbm.so
    apache /usr/lib/apache/mod_authn_default.so
    apache /usr/lib/apache/mod_authn_file.so
    apache /usr/lib/apache/mod_authz_dbm.so
    apache /usr/lib/apache/mod_authz_default.so
    apache /usr/lib/apache/mod_authz_groupfile.so
    apache /usr/lib/apache/mod_authz_host.so
    apache /usr/lib/apache/mod_authz_owner.so
    apache /usr/lib/apache/mod_authz_user.so
    apache /usr/lib/apache/mod_autoindex.so
    apache /usr/lib/apache/mod_cern_meta.so
    apache /usr/lib/apache/mod_cgi.so
    apache /usr/lib/apache/mod_dav.so
    apache /usr/lib/apache/mod_dav_fs.so
    apache /usr/lib/apache/mod_dbd.so
    apache /usr/lib/apache/mod_deflate.so
    apache /usr/lib/apache/mod_dir.so
    apache /usr/lib/apache/mod_dumpio.so
    apache /usr/lib/apache/mod_env.so
    apache /usr/lib/apache/mod_expires.so
    apache /usr/lib/apache/mod_ext_filter.so
    apache /usr/lib/apache/mod_filter.so
    apache /usr/lib/apache/mod_headers.so
    apache /usr/lib/apache/mod_ident.so
    apache /usr/lib/apache/mod_imagemap.so
    apache /usr/lib/apache/mod_include.so
    apache /usr/lib/apache/mod_info.so
    apache /usr/lib/apache/mod_log_config.so
    apache /usr/lib/apache/mod_log_forensic.so
    apache /usr/lib/apache/mod_logio.so
    apache /usr/lib/apache/mod_mime.so
    apache /usr/lib/apache/mod_mime_magic.so
    apache /usr/lib/apache/mod_negotiation.so
    apache /usr/lib/apache/mod_proxy.so
    apache /usr/lib/apache/mod_proxy_ajp.so
    apache /usr/lib/apache/mod_proxy_balancer.so
    apache /usr/lib/apache/mod_proxy_connect.so
    apache /usr/lib/apache/mod_proxy_ftp.so
    apache /usr/lib/apache/mod_proxy_http.so
    apache /usr/lib/apache/mod_rewrite.so
    apache /usr/lib/apache/mod_setenvif.so
    apache /usr/lib/apache/mod_speling.so
    apache /usr/lib/apache/mod_ssl.so
    apache /usr/lib/apache/mod_status.so
    apache /usr/lib/apache/mod_suexec.so
    apache /usr/lib/apache/mod_unique_id.so
    apache /usr/lib/apache/mod_userdir.so
    apache /usr/lib/apache/mod_usertrack.so
    apache /usr/lib/apache/mod_version.so
    apache /usr/lib/apache/mod_vhost_alias.so

    A bunch of modules have changed for apache 2.2 and got new names etc, therefore you have to edit httpd.conf, take look at http://httpd.apache.org/docs/2.2/new_features_2_2.html. For example, mod_access is now called mod_authz_host (with the new identifier authz_host_module, instead of access_module)

  • Apache URL rewrite

    Hi,
    To make iPlanet work with apache, documentation ask me to change
    httpd.conf so that all request comes into apache will forward to
    iPlanet.
    But I need to use URL rewrite module of apache contains the rewrite rule
    RewriteRule ^/lmp
    /NASApp/delivery/servlet/delivery;jsessionid=%{QUERY_STRING} [PT,NS]
    which means if URL contains /lmp then rewrite to iPlanet handler
    /NASApp/...etc
    any one had successfully configure apache mod_rewrite works with
    iPlanet?
    In my pervious experience with Tomcat apache. I realize I have to load
    the web-server-plugin module before module rewrite module. But if I do
    that with iAS. then i get 404 not found on request to servlet.
    thanks

    We use iPlanet and apache with mode_rewrite
    Try this:
    RewriteEngine On
    RewriteLog /usr/local/apache/logs/rewrite.log
    RewriteLogLevel 1
    # Rewrite Rules for App1
    RewriteCond %{HTTP_HOST} ^app1.company.de$
    RewriteRule ^/ https://myiWS.company.de:8011/NASApp/app1/mystartup.jsp

  • Apache Sling JCR Resource Resolver to remove selected pattern

    Hello,
    I have a requirement to remove selected pattern from all urls. Pattern will look like:
    <domain>/content/mysite/en/section1.html -> <domain>/section1.html
    <domain>/content/mysite/en/section1/cat1.html -> <domain>/section1/cat1.html
    <domain>/content/mysite/en/section1/cat1/page.html -> <domain>/section1/cat1/page.html
    I am new to mappings so looking for help from expert.
    Thanks for your help in advance.
    Regards,
    Mohit

    Does your domain represent a language? If there is no relationship between domain and the paths you are removing (for example www.mysite.com maps to /content/mysite/en and www.mysite.fr maps to /content/mysite/fr) then you can just use the resource resolver and not have to use /etc/maps approach. You would add /content/mysite/en/-/ to the resource.resolver.mapping property of the JCR Resource Resolver (make sure that the last property is /-/. You can do that either in the OSGI Felix console or via OSGI repository configuration.
    If you are using Dispatcher for caching you need to consider using Apache mod_rewrite for handling the incoming mappings. If you rely solely on the JCR Resource Resolver (or and /etc/maps approach) you can cause problems with cache flushing. If you don't use Apache mod_rewrite to change /section1.html to /content/mysite/en/section1.html then the request gets cache in the docroot as /section1.html. When you publish a change to /content/mysite/en/section1.html Dispatcher will not make the propery association and will touch the wrong stat file. Now if your stat file level is set to 0 and you set up to auto-invalidate HTML you will probably not notice the impacts immediately. If however you set your stat file level above zero, or you have non-standard auto-invalidation settings you may have problems with your cache flushing. In general anytime I do I am using Dispatcher I use Apache mod_rewrite to handle incoming rewrites. I still configure the JCR Resource Resolver to handle both incoming and outgoing rewrites so that I can test the site directly against the publish server if I need to, but I'll set up mod_rewrite to handle incoming rewrites and avoid any cache flush issues.
    For SEO purposes in scenarios you will want to configure Apache mod_rewrite to prevent requests directly to the full path. Often times you will either have an outgoing link not get rewritten to the short URL, or someone will send out the full link by accident so you will want to prevent those links from working - potential by doing a 301 redirect of /content/mysite/en/section1.html back to /section1.html. This prevents SEO issues, but you do have to make sure you don't create an infinte loop since the redirected request will then get rewritten to the long URL.

  • How do I fix Oracle Apache Trace and Track vulnerability?

    Hi All,
    After a vulnerability scan of our Oracle 10g (10.1.2.0.2) OID & Portal environments and Oracle 6i (9.0.2.2) Forms & Reports machines, I found a vulnerability with Trace & Track (http://www.kb.cert.org/vuls/id/867593) on these machines. The proposed fix for Apache is as follows:
    Apache HTTP Server
    To disable HTTP TRACE support, set TraceEnable Off.
    Alternatively, use the Apache mod_rewrite module to deny HTTP TRACE requests or to permit only the methods needed to meet site requirements and policy. TRACE requests can be disabled with the following mod_rewrite syntax:
    RewriteEngine On
    RewriteCond %{REQUEST_METHOD} ^TRACE
    RewriteRule .* - [F]
    However, this did not resolve the vulnerability. I realize that Oracle has modified Apache and so a non-standard approach may be required. Does anyone know of a fix for either version of Oracle (10g or 6i)?
    Thanks in advance!
    Sunil

    You need to put this in the Virtual host tag for it to work.

  • COmmunity website in need of a blogger script

    I own and maintain a community website.
    I fund the whole thing myself so cost is a factor.
    I have been asked by many residents to have a blogger part
    added to our site a bit like myspace.
    They would like just a basic one though.
    Upload photos mp3 videos, small files to start with.
    and have an option to have other mwembers comment on other
    pages.
    all members have to sign in and ALL posts are monitored, this
    is a must as most are asking that this be done.
    does anyone know of a script that has these for starters.
    cheers.

    On 25 Sep 2006 in macromedia.dreamweaver, cheers mate wrote:
    > I have loked around and see it allows photos to be
    uploaded but not
    > music and videos files.
    >
    > any others?
    Wordpress:
    http://wordpress.org/
    http://codex.wordpress.org/Using_Image_and_File_Attachments
    Note: I only looked quickly at the docs; if what you want is
    to, say,
    upload a music file and have it appear in a music player, you
    may need a
    plugin or attachment:
    http://www.wp-plugins.net/
    WordPress server requirements for version 2.0 and later:
    * PHP version 4.2 or greater
    * MySQL version 3.23.23 or greater
    * (Optional) Apache mod_rewrite module (for clean URI's
    known as
    Permalinks)
    http://codex.wordpress.org/Hosting_WordPress
    Joe Makowiec
    http://makowiec.net/
    Email:
    http://makowiec.net/email.php

  • APEX - Cocoon PDF Generates as attachment (issue)

    Hello,
    [bumped as issue has come to light again, does anyone have any ideas???]
    We have Application Express 3.01 with PDF printing configured the Apache Tomcat + Cocoon way. Our APEX instance runs over https on an internal network.
    Everything works with no issues, except that in the environment that we are running, browsers are IE configured with an advanced option "Do not save encrypted pages to disk" set (for security reasons related to another application).
    PDF's are served as attachments, this means that when you click the "Print PDF" link you are presented with an Open/ Save dialogue. If you click "Open", the file fails to open (as it has not been saved to disk). Everything is fine if you click "Save" then subsequently open the file. It's the same deal with CSV files using the standard APEX CSV generation. If we turn off the security option in IE, it all works fine, even the "Open", but rolling this change out to users is not an option.
    This issue comes down to the HTML that the PDF document is being wrapped in. The content-disposition must be being set to "attachment", whereas in this situation we would prefer it set to "inline" which would mean that the PDF opens in the users' browser.
    We have tried adding a map:act type="set-header" line to the sitemap.xmap to set the content-disposition but it seems to have no effect, presumably because APEX fires off XML and FO to cocoon, gets back a PDF then generates the HTML to send back to the user.
    Other methods we've considered are:
    - Apache mod_rewrite entries to rewrite the content-disposition on the Apex web server.
    - Adding a before header application process to try to intercept the html and rewrite it manually
    Neither of the above are getting us anywhere, does anyone have any ideas? If no-one has any ideas, can you explain how you get from posting a FLOW_XMLP_OUTPUT_R request to getting back a PDF and whether there's anything along the way that could be tapped into?
    Many thanks in advance for your assistance.
    Matt

    Matt,
    On this note, it probably also makes sense to mention that with APEX 3.1 we introduce a PL/SQL API that gives you much broader control over what is generated how and the method it's made available to the client. You'll get the ability to retrieve the PDF in a BLOB directly on the server, store in your own tables for later download or send via email attachment. You'll also get the ability to write your own download process using after-submit page processes. And you can have combinations of your own XML with your own stylesheets, or combine report queries with customer stylesheets at runtime, or just simply retrieve the results of pre-defined report queries / report layouts in BLOBs.
    I'll talk about this much more on my Blog once 3.1 is out, and will provide whitepapers, how-to's etc
    Regards,
    Marc

  • Need Help with 404 error

    Hello,
    I have completed the local folder, tesing server, and remote server setup correctly  (i think so).
    My testing setup and files shown below:
    My local folder for site shown below:
    My advanced settings shown below:
    I have downloaded all the files to the local folder from my remote server which are working fine on the live website http://www.caremoreconstruction.co.uk.
    No layouts of the files/folders etc have been changed, I simply moved them over from the FTP server in to local folder I had created.
    Just to confirm I have XAMPP installed and Apache runnining.
    When I open DW CS5 and select the index.php file form the FILES tab, the main home page opens up and I little bar comes up at the top and says "This page has server proccesing directives that design view cannot display. Switch to Live View".
    So I click on Live View and the home page loads up. I then press ctrl and click one of the links. (See picture below)
    For some reason I am getting the following error message when I click on my links.
    Object not found!
    The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.
    If you think this is a server error, please contact thewebmaster.
    Error 404
    localhost
    12/30/10 11:58:51
    Apache/2.2.14 (Win32) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l mod_autoindex_color PHP/5.3.1 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1
    Please can someone help me!!
    Regards
    James

    David,
    This is the responce I have had from my website designer.
    Happy new year to you also.  Re Dreamweaver it’s not a tool we use I’m afraid, we generally use tools like Netbeans and code oriented text editors so I’m not best placed to advise on the config of it. I have used it back in 2003, it’s a great development platform, but I just ended up working with other tools.
    Looking at the post though, you seem to have got the site running but the issue seems to be the friendly URLs. As David correctly identified, .htaccess and mod_rewrite are used to effect this. If you don’t have the correct .htaccess file in place this aspect of the navigation won’t work.  You should also be running the site from the root directory – both the production (live) website and our development environments are setup in this way, so though I don’t think we implement root relative URIs in the site navigation, I can’t say there won’t be issues running it in a subdirectory off http://locahost without reviewing all the code, which I haven’t.
    The .htaccess file you need is on your live website, but many FTP clients will not display this by default, so your FTP download may have missed it.
    You can create it yourself, it needs the following directives.  The “.” on the front of the filename is very important.
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php/$1 [L]
    That should solve your navigation issue, providing the Apache mod_rewrite module is enabled.  If it doesn’t I can’t really help you further, other than to suggest you get a second hosting account online.  I seem to think you can use a remote development environment in Dreamweaver.  The advantage here is that you’ll have an environment that you know to work, with all the components installed.  No disrespect, but even we can spend ages configuring our development servers to work as we need, and much depends on the installation approach you use in setting up Apache, PHP and MySQL
    Re the database, as David has sussed there is no MySQL database to concern yourself with. Other red herrings include login and register handlers which are not implemented.  Your original brief included the possibility of a customer login to access your quotes & progress reports down the line, so we allowed for that in the initial build and planned for MySQL access but didn’t implement those features.
    Hope that helps. Great to see how far you’ve come with this – I probably couldn’t get as far building in the same time! Also glad to see that the comments re the code and structure are good – it’s always interesting to see what another developer, who obviously knows his stuff, thinks of your code!!
    Regards
    Oliver Phillips
    http://www.eantics.co.uk
    OMG ITS WORKING NOW!!!!!
    1. Move all files and folders for the website to the main root directory http://localhost/
    2. Open notepad and copy/paste code above in to note pad.
    3. Click Save As from files menu. Change save format to all files and call it .htaccess (dont forget to put the ''.'' before htaccess)
    4. Move .htaccess file to the root directory of the local/testing site.
    and that's it!
    There is just one small problem, I have had to move the XAMPP folder out of the root directory http://localhost for the links to work in DW CS5. When I first tried the link on my home page (both in DW CS5 and Browser) it redirected me to the XAMPP home page.
    I think the solution for this would be to put XAMPP back in http://localhost/xampp and move website file and folders to vhost.

Maybe you are looking for

  • Does Photoshop CS4 work with Windows 8?

    I tried to load the Photoshop software from my CS4 disk and I get an error message Startup is corrupt.  Contact Adobe.  It loaded perfectly in Vista previously.  What do I do now? Tom Cranmer

  • How to upload the Pdf Document?

    Hi Gurus, I have a requirement to design the screen using Java Webdynpro, where I have to give a option of uploading PDF form (which can be maximum of 10 mb size each) .it can be 2 or 3 files( maximum) per commit statement. Also I need to have to val

  • SQL Developer 1.2.1, SQL Worksheet, Full Row Select

    I was wondering if there was a way in the worksheet under 1.2.1 to do a full row select when viewing. When only columns are selected, it makes it a little difficult to scroll to the right on large records and still know which record is the current on

  • Extending classes with private methods?

    my understanding of extending classes is that you gain all the functions and methods of that class thus You could over ride any one of them. How ever I am confused on weather or not you inherit and can over ride private methods of the class you are e

  • IMPORT error :  ORA-01631

    Hi, I am impoting a dump file to a Oracle 8.1.7 database. Before the import, I have manually created all the tablespaces required. Now I'm getting an error while importing rows: ORA-01631: max # extents (100) reached in table <..> IMP-00018: partial