rewrite_mod

This is a discussion on "rewrite_mod" within the PHP Forum section. This forum, and the thread "rewrite_mod are both part of the Program Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Program Your Website > PHP Forum

Notices




Closed Thread
 
LinkBack Thread Tools
  #1  
Old Nov 25th, 2004, 22:47
New Member
Join Date: Dec 2003
Location: USA
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
rewrite_mod

Hello,
May be somebody here can help my problem
I have a lot php generated pages. The URL looks like this:
http://www.myhosting.com/directory/i...Arts/Business/
And using rewrite_mod I want to make it like this:
http://www.myhosting.com/directory/Arts/Business/
Or if I have this URL:
http://www.myhosting.com/directory/i...et/Web_design/
it changes to:
http://www.myhosting.com/directory/C...et/Web_design/
basically it must change properties of index.php to directories...or something like that
I hope you get the idea and can help my problem I need syntax of rewrite rule to achieve this thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!

  #2  
Old Nov 26th, 2004, 06:51
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
Ok, this is a fairly complicated and very very 'open source' part of Apache. I say this, because open source software can often be over-complicated yet very fast and powerful and that is exactly what has happened to mod_rewrite.

I've never actually use this before, so I won't try and help you from expereience...instead...
Here is the official documentation:
http://httpd.apache.org/docs/mod/mod_rewrite.html

And they also have an URL rewriting guide:
http://httpd.apache.org/docs/misc/rewriteguide.html

But most useful of all may well be this tool:
http://www.webmaster-toolkit.com/mod...enerator.shtml
which lets you input an original url and the url you want and it provides you with a rewrite rule :wink:

I hope this helps!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #3  
Old Nov 26th, 2004, 21:20
New Member
Join Date: Dec 2003
Location: USA
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Thank you, but I've already tried all of that. Apache docs do not have a specific rule and generated code is not working properly...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Closed Thread

Tags
rewrite_mod

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 08:22.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42