As far as I remember, every single
possible reason that my mod_rewrite can go wrong for you is listed here. I will start simply directing people here instead of repeating myself. If this doesn't solve your problems this is due to one of the following things:
- Error in understanding
- Error in implementation
- Platform that does not support a solution
Feel free to ask questions here, but if I don't answer them it will mean they are questions that are already answered in this post.
1) Check to see if you have access to mod_rewrite, the 403
errors usually mean no access to this or a syntax error in the .htaccess file. Don't do this by seeing what modules Apache is loading, or by looking at the phpinfo output. Do this by testing a simple rewrite. If you do not have access to mod_rewrite, mod_rewrite will not work and you should speak to your server administrator about this.
Here is an example
(for most platforms) test.
- Make an directory on your site.
- Make a file called bar.html in this directory with the following string "Happy happy joy joy".
- Make an .htaccess file with the following
RewriteRule ^foo.* bar.html [L,NC]
[*]Attempt to access foo.html in this directory with your browser.
- If you see the content in the bar.html file, the rewrite worked.
2) Did you create the .htaccess file correctly? It should be exactly that, nothing else.
- Sometimes your operating system will hide known extensions (you can change this setting in windows, ask how on the computer forum) and your file might really be htaccess.txt
- Sometimes your operating system or text editor will not allow you to save a file beginning with a period. You can save it as htaccess.txt and rename it on the server through your ftp client.
- Sometimes your FTP client will hide files that begin with periods, you can usually change a setting to have it show them to you. If you have questions about your FTP client ask on the computer forum.
3) Did you put the .htaccess file in the right place? It should be placed IN THE FORUM'S DIRECTORY (big letters because this seems to be ignored both in the mod instructions and in attempts to help people who put it elsewhere).
4) Do you need a rewritebase added to your .htaccess file? Some configurations need this. See if it helps you.
In your .htaccess file:
See if that solves your problems.
5) Are other rewrite rules or mods conflicting with this one? Don't ask me, I don't know what you are running. :-D I also can't spend time trouble shooting other people's mods or maintaining universal compatibility with anything anyone might decide to do to their forums.
6) We are talking about phpBB right? My mod is for phpBB
, not phpnuke, mambo or any other ported phpBB.
- If you get 404's then check your error logs for where the request is failing, don't expect others to magically know when you have the data and they don't. Have a look at your logs and see. If don't understand the logs then post them for other to answer. Don't expect people to magically know what your server is doing.
- The mod is restricted to guests. Don't test it while logged in.
- If you install the mods perfectly it still doesn't mean your site will be indexed, this depends on search engine algorithms. The mod opens the door for them, whether or not they want to come in is based on their algorithms. Most of the time you can get them to index you by getting backlinks.
If I have missed anything, feel free to point it out and if it really
isn't covered above, I will add it.