Administrator
|
Ok, ignore my PM, I just seemed to miss this post for some reason. Couple things I see wrong below. Don't know if it was an output problem but there should be a new line after "rewriteengine on" 2nd, you might need a leading "/" in front of all your searches as the server usually sees a file with a leading /. so in the example nothing may be getting matched, so nothing is modified. 1st rule: in the search area, you should escape any periods by puting a \ in front of them because it understands a period as "any character" and you probably want to add a / in front of the redirected locationso it should be: RewriteRule ^online/([0-9]+)/([_A-Za-z0-9-]+)\.html /index.php?action=file&fileid=$1 [L] 2nd rule: I'm assuming you are looking for the following to occur: if url is /onlinegames/234/whatever/ then redirect, but in this instance the last ? isn't really doing anything because I believe you need to make a character class out of the / so surround it in []. 3rd, 4th, 5th rule: Same as first. Also, as noted in my PM, godaddy is known for its "problems" with mod_rewrite. I'm not saying it doesn't work I've just heard that it is finicky. But the above hints should put you closer to making it work. Also, don't forget you also have an access log or could add the rewritelog option to your htaccess file to further help you troubleshoot what is going wrong. You may also scale it back a little bit just to get "something" working and then build up from there. Try just a small rewrite such as replacing one directory name with another. Try the above fixes and post back if you are still having troubles.
|