4WebHelp
 FAQ  •  Search  •  User Groups  •  Forum Admins  •  Smilies List  •  Statistics  •  Rules   •  Login   •  Register
Toggle Navigation Menu

 [Apache] mod_rewrite
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic
Author Message
slash
Junior WebHelper
Junior WebHelper


Joined: 25 Jul 2003
Posts: 1

PostPosted: Sat Jul 26, 2003 11:45 am (20 years, 9 months ago) Reply with QuoteBack to Top

looking on the net i find very userfull thik - hov to make easy URL like this: http://xyz.com/pagename/parametr1/parametr2/index.php
not like this:
http://xyz.com/index.php?page=pagename&parametr1=parametr1&paramter2=parametr2
this is only ex. bu idea of this is to make easy and search/user friendly URL.
I want to do using mod_rewrite something like this:
any request form http://xyz.com/..../index.php
will open http://xyz.com/index.php where .... is anythink, user in his browser will have URL like this http://xyz.com/..../index.php but in real will be open http://xyz.com/index.php - in this file script will be translate URL and use data stored in him.
Now I using something like this, but this don't work:
Code:

   DocumentRoot D:/Apache2/www/site/
   ServerName site.comm
   RewriteEngine on
   RewriteRule ^.*$ D:/Apache2/www/site/index.php [l]


Can anyone help me ??
OfflineView User's ProfileFind all posts by slashSend Personal Message
adam
Forum Moderator & Developer



Joined: 26 Jul 2002
Posts: 704
Location: UK

PostPosted: Mon Jul 28, 2003 3:15 pm (20 years, 8 months ago) Reply with QuoteBack to Top

you need to use urls, instead of the path on the server, so just /index.php instead of d:/Apache2/etc...

________________________________
It's turtles all the way down...
OfflineView User's ProfileFind all posts by adamSend Personal MessageVisit Poster's Website
Display posts from previous:      
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic


 Jump to:   




You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot edit your posts in this forum.
You cannot delete your posts in this forum.
You cannot vote in polls in this forum.


Page generation time: 0.200058 seconds :: 18 queries executed :: All Times are GMT
Powered by phpBB 2.0 © 2001, 2002 phpBB Group :: Based on an FI Theme