Apache ErrorDocument External Redirect with Variables -


is possible in apache ... (i.e. redirect external url path causing 403 error passed along)

errordocument 403 http://www.sample.com/{{redirect_url}} 

i create /publication directory, want served main index.php there file in directory.

/publication?page=1 served /index.php, /publication/file.pdf file residing in directory.

apache returend 403 error since /publication directory has no permission listed. whe redirect 403 error /index.php cant catch variables. think redirect_query_string variable can used mess php classes.

i changed mod_rewrite config catch directory serving, see '#', removed errordocument 403 directive, since no need.

<ifmodule mod_rewrite.c>   rewriteengine on   rewritecond %{request_filename} !-f #  rewritecond %{request_filename} !-d   rewritecond %{request_uri} !=/favicon.ico   rewriterule ^(.*)$ index.php?path=$1 [l,qsa] </ifmodule> 

what have

/publication > /index.php?path=publication  /publication/?page=1  > /index.php?path=publication&page=1  /publication/file.pdf > /publication/file.pdf 

Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -