Forum Moderators: phranque
RewriteEngine On
RewriteRule ^index/(.*)/(.*)/ /index.php?cat=$1&item=$2
RewriteRule ^index/(.*)/(.*) /index.php?cat=$1&item=$2
RewriteRule ^index/(.*) /index.php?cat=$1
RewriteRule ^index/(.*)-(.*) /index.php?cat=$1&p=$2
which works fine. But I want to remove the /index so the address line looks like domain.tld/1/2 rather than domain.tld/index/1/2. I have tried simply removing the word index or index/ so the code starts ^/(.* or ^(.* but it doesn't work. Any ideas?
Cheers
themoron :@)
RewriteEngine On
RewriteRule ^(index/)?([^/]+)/([^/]*)/? /index.php?cat=21&item=$3 [L]
RewriteRule ^(index/)?([^/]*)/? /index.php?cat=$2 [L]
RewriteRule ^(index/)([^-]+)-([^/]*)/? /index.php?cat=$2&p=$3 [L]
I assumed that you want to be able to request URLs matching the patterns on the left without including the "index/" part when you type the URL into your browser. If that's not what you wanted, please explain in terms of requested URL versus content filepath.
Jim
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request"
And the error logs are
[Tue May 17 15:26:06 2005] [error] [client ##.##.##.##] File does not exist: /home/username/public_html/404.shtml
[Tue May 17 15:26:06 2005] [error] [client ##.##.##.##] File does not exist: /home/username/public_html/index
Cheers
themoron :@)