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.
|
|
|
|
|
![]() |
||
rewrite_mod
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
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 |
|
|
|
|||
|
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! |
![]() |
| Tags |
| rewrite_mod |
| Thread Tools | |
|
|