Forum Moderators: phranque
DirectoryIndex cgi-bin/y/d.cgi/?index-IPP10000 index.htm
RewriteEngine on
Options +FollowSymlinks -Indexes
RewriteBase /
ReWriteRule ^manager$ manager [L]
RewriteCond %{HTTP_REFERER}!^$
RewriteCond %{HTTP_REFERER}!^http://(www\.)?mydomain\.com/.*$ [NC]
RewriteRule \.(gif¦jpe?g¦png¦bmp)$ - [F,NC,L]
RewriteRule ^\.htaccess$ - [F]
# MyRule 1
RewriteRule ^cgi-bin/y/d.cgi/?([a-z]+)-IPP([0-9]+)$ - [NC,L]
# MyRule 2
RewriteRule ^([a-z0-9]{5})/([a-z0-9]*)/?$ Kcontent.php [NC,L]
# MyRule 3-4
ReWriteRule ^([a-z0-9]+)/?$ 10000/$1.php [NC]
RewriteRule ^10000/([a-z0-9]+)/?$ Kcontent.php [NC,L]
When I send [mydomain...] MyRule 2 correctly directs the request to Kcontent.php.
When I send [mydomain...] the page returns a 404 not found. I have also tried using %1 as the variable. I was expecting MyRules 3-4 to reform the request and direct it to Kcontent.php also.
What am I doing wrong?
Many thanks.
# MyRule 3-4
ReWriteRule ^([a-z0-9]+)/?$ 10000/$1.php [NC]
RewriteRule ^10000/([a-z0-9]+)/?$ Kcontent.php [NC,L]
Jim