SitePoint Sponsor |
|
User Tag List
Results 1 to 4 of 4
-
Jan 11, 2007, 14:45 #1
- Join Date
- Jul 2003
- Location
- Romania
- Posts
- 118
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
URL rewriting without mod_rewrite
Hello!
Is it possible to rewrite an url without using mod_rewrite? If yes, how?
Thanks.
-
Jan 11, 2007, 15:02 #2
- Join Date
- Oct 2005
- Location
- South Dakota
- Posts
- 215
- Mentioned
- 1 Post(s)
- Tagged
- 0 Thread(s)
you should beable to just use:
PHP Code:header("Location: http://www.wsforums.com");
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
-
Jan 11, 2007, 15:45 #3
- Join Date
- Mar 2006
- Posts
- 6,132
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
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.
-
Jan 11, 2007, 22:41 #4
- Join Date
- Jan 2007
- Posts
- 0
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Google: "mod_rewrite alternative"
Bookmarks