Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!
Moderator: General Moderators
-
feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
Post
by feyd »
There are no dashes or "$&html" contained in your url's... I'm totally confused.
-
feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
Post
by feyd »
That site generated
Code: Select all
RewriteEngine On
RewriteRule ^([^/]*)/([^/]*)\.html$ /view.php?cat=$1&id=$2 [L]
when I pasted your original.
-
psurrena
- Forum Contributor
- Posts: 355
- Joined: Thu Nov 10, 2005 12:31 pm
- Location: Broolyn, NY
Post
by psurrena »
Odd, I pasted what what was infront of me.
Maybe I should just avoid that website

-
psurrena
- Forum Contributor
- Posts: 355
- Joined: Thu Nov 10, 2005 12:31 pm
- Location: Broolyn, NY
Post
by psurrena »
I just wrote my own regex
Code: Select all
RewriteEngine On
RewriteRule ^view/([0-9])+)?$ view.php?id=$1 [L]
It doesn't work but I don't see why not...
-
feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
Post
by feyd »
Count your parentheses.