Rewrite but no path_info

This is a discussion on Rewrite but no path_info within the Apache Web Server forums, part of the Web Server and Related Forums category; Running shared host Apache 1.3 htaccess only: I have mod_rewrite working where all requests that don't have a ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 6 Days Ago
drhowarddrfine
 
Posts: n/a
Default Rewrite but no path_info

Running shared host Apache 1.3 htaccess only:

I have mod_rewrite working where all requests that don't have a dot
(.html, .css, etc) are rewritten to one web app which dynamically
generates all other content/web pages. This does what I want:

RewriteEngine on
RewriteRule ^/?([a-z/-]+)$ cgi-bin/my_app [L]

However, path_info is now null and path_translated is empty when I
printf the content to a web page. Script_name prints as /cgi-bin/
my_app

I wanted to use path_info (I assume) to see what path the request is
actually for. iow, if the request is for example.com/page1/info , I
would like to examine path_info to see /page1/info.
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:33 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0