3
URL rewriting is a function of Apache and is suitable for all kinds of URL, also these from XOOPS. It needs only the right conversion rules.
Did you check if the module mod_rewrite of Apache is activated?
Try this:
- Create a directory named test in your site root:
http://www.yoursite.com/test/ .
- Create a file test.html in this directory with content:
<html>
<head>
<title>Testtitle>
head>
<body>OK !body>
html>
- Check if
http://www.yoursite.com/test/test.html says 'OK !'.
- In this directory create a file .htaccess with this content:
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^unknown.html$ /test/test.html [L]
- Try to access
http://www.yoursite.com/test/unknown.htmlIf it gives error 404 then your system is not set up for URL rewriting.
Edit:
The code tags are not displaying the enclosed code correctly!!!This is what it should say:
Quote:
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^unknown\.html$ /test/test.html [L]
Or in plain:
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^unknown\.html$ /test/test.html [L]
How can we share code if the code tag is not functioning properly?