Hello!
Is it possible to rewrite an url without using mod_rewrite? If yes, how?
Thanks.
| SitePoint Sponsor |

Hello!
Is it possible to rewrite an url without using mod_rewrite? If yes, how?
Thanks.


you should beable to just use:
if that doesnt work for some reason you could always do a meta refresh or a javascript redirect like this:PHP Code:header("Location: http://www.wsforums.com");
(this goes in the <head> tag)HTML Code:<meta http-equiv="refresh" content="1;url=http://www.wsforums.com">
in javascript use:
HTML Code:<script type="text/javascript"> document.location = "http://www.wsforums.com"; </script>
Did I help you?
You can repay me, support one of my projects (no money needed):
JavaScript Wiki, Another Web Forum, Paranormal Site
you can make a bunch of directorys and put an index.php script in each.
these index.php scripts can then include some other script which will examine the $_SERVER['REQUEST_URI'] and output the neccesary data to the browser.
you also might be able to set a php script as your custom error page.
neither are a very good solution.
if you dont have mod_rewrite because your server is not apache, there are other rewriting modules for other server software.
Google: "mod_rewrite alternative"
Bookmarks