|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
mod_rewrite help needed
I need to have the following URLS rewrite to one PHP script. I'm converting static pages to a dynamic php script. www.mysite.com/blue/widgets-large-0993.htm www.mysite.com/anysub/any-other-product-widgets-093.htm www.mysite.com/red/big-widgets-small-9923.htm www.mysite.com/red/big/lovely/greet-widgets-for-boats-9923.htm Where ANY url containing "widgets" would forward to www.mysite.com/myscript.php I've tried many options: RewriteEngine on Options +FollowSymlinks RewriteBase / Rewriterule ^.*WIDGETS$ myscript.php?id=uri=%{REQUEST_URI} [L] Does not work. |
|
#2
|
|||
|
|||
|
RE: mod_rewrite help needed
something like this?
RewriteEngine on RewriteBase /var/www/some/path/ RewriteRule ^widgets.htm$ myscript.php |
|
#3
|
|||
|
|||
|
RE: mod_rewrite help needed
RewriteEngine on
RewriteBase / RewriteRule ^(.*)widgets(.*)$ /myscript.php?id=uri=%{REQUEST_URI} [L] |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Server Administration > mod_rewrite help needed |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|