mod-rewrite problem

Discuss practical ways rearrange URLs using mod_rewrite.

mod-rewrite problem

Postby danharlan » Thu Nov 20, 2003 1:45 pm

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/
RewriteRule ^productid([^.]+).*$ Theatres.php?id=$1
[T=application/x-httpd-php]

In the calling html file I call productid1.htm

What am I doing wrong?

I using shared hosting so my directory is noit the root. I have been
auinable to get logging to work and each time I try to add loggin to the
.htaccess file I get an error when trying to viw the calling page.
danharlan
 

Return to Friendly URLs with Mod_Rewrite

Who is online

Users browsing this forum: No registered users and 68 guests

cron