Thanks for such a good explaination. Unfortunately when I put the .htaccess
filein the directory I get the following error
Internal Server Error
The server encountered an internal error or misconfiguration and was unable
to complete your request.
Please contact the server administrator, and inform them of the time the
error occurred, and anything you might have done that may have caused the
error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an
ErrorDocument to handle the request.
Any idea on how to debug this?
"Justin Koivisto" <spam DeleteThis @koivi.com> wrote in message
news:3g4vb.1075$Uz.33673@news7.onvoy.net...
> Harlan Lax wrote:
>
> > I am attempting to use mod-rewrite to chnage my dynamically created
pages
> > into static urlls for search engine submission. I am unable to get the
> > rewrite to work, it doesn't seem to do anything.
> >
> > Here is the code
> >
> > RewriteEngine on
> > RewriteBase /home/mydirpublic_html/show/
>
> This shouldn't be the system path, but the URI from doc_root. For
<font color=purple> > instance, if your site is located at <a style='text-decoration: underline;' href="http://www.example.com/~username</font" target="_blank">http://www.example.com/~username</font</a>>
> and the directory you want to use rewrite in is
> <a style='text-decoration: underline;' href="http://www.example.com/~username/show/" target="_blank">http://www.example.com/~username/show/</a> then you'd want to use the
following:
> RewriteBase /~username/show/
>
> Alternatively, you can skip the RewriteBase althogether if your
> .htaccess file is in the show directory.
>
> > RewriteRule ^productid([^.]+).*$ Theatres.php?id=$1
> > [T=application/x-httpd-php]
>
> RewriteRule ^productid(.*)\.html?$ Theatres.php?id=$1
>
> That should have the following results:
> product1.html => Theatres.php?id=1
> product1.htm => Theatres.php?id=1
> product1054.html => Theatres.php?id=1054
> product13.54.html => Theatres.php?id=13.54
> product-a1.html => Theatres.php?id=-a1
>
> --
> Justin Koivisto - spam DeleteThis @koivi.com
> PHP POSTERS: Please use comp.lang.php for PHP related questions,
> alt.php* groups are not recommended.
><!-- ~MESSAGE_AFTER~ -->
>> Stay informed about: mod-rewrite