Hello
I am pretty new to php and trying to solve a problem with rewriting Urls. Searching on this subject I found some cool stuff could be done in the .htaccess file. But where my site is hosted the .htaccess file is not allowed. So I am wondering if there is another way to do this?
Thanks
Doing a Url Rewrite without using .htaccess?
Moderator: General Moderators
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Re: Doing a Url Rewrite without using .htaccess?
You can do URLs like: mysite.com/index.php/foo/bar/baz/ then check $_SERVER['PATH_INFO'].
(#10850)
Re: Doing a Url Rewrite without using .htaccess?
I have considered that, but that will force me to make a re direct for each page I have right? I would like it to be done from kne central place.
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Re: Doing a Url Rewrite without using .htaccess?
No, it just has the script name in the middle of the URL. If you are using Apache then you don't need anything else.
(#10850)