And welcome
So first, mod_rewrite is an Apache module allowing us to play with our URLs. So all of this only apply if your run Apache as a server.
On windows server, it is still possible to use isapi_rewrtie with small adaptations.
A very basic test can tell you if mod rewrite is available :
1) create an html page called found.html with whatever you want in it, but some text to be sure it's loaded (not a blank page basically) and put this in an file called ".htaccess" :
- Code: Select all
RewriteEngine on
RewriteBase /
RewriteRule ^find\.html$ /found.html [L]
2) upload both your .htaccess and the found.html files in your domain's root (read
this about how to transfer .htaccess files if you encounter problems).
3) Just try to load -www.example.com/find.html (with your real domain of course). If mod_rewrite is available, you should see the content of found.html while browsing find.html (which does not physically exist by the way).
If it does not work, try :
- Code: Select all
RewriteEngine on
RewriteBase /
RewriteRule ^find\.html$ found.html [L]
If none work, mod_rewrite is most likely not loaded.
++