Forum Moderators: phranque
http://www.example.com/?p=Ladies_summer_Camp
I want it to show.
http://www.example.com/summer_camp/Ladies_summer_Camp.html like its coded through the site.
Im probably going to have to do it to a lot of pages after doing a site:www.example.com I see a few. same pattern for all.
I know it's simple. I just don't know how to google it.
[edited by: encyclo at 12:11 am (utc) on June 26, 2009]
[edit reason] please use example.com [/edit]
RewriteCond %{THE_REQUEST} ^[A-Z]+\ /\?p=([^\ ]*)\ HTTP/
RewriteRule ^$ [domain.com...] [R=301,L]
The only problem is it doesnt have the .html to the end. just leaves it in directory structure.
Next thing I realized after.
Most of them are ?p=blah then I noticed that SOME had ?p=blah&town=bla_g sometimes theres and underscore sometimes there isn't.
Any idea's?
RewriteCond %{THE_REQUEST} ^[A-Z]+\ /\?[b]p=([^&\ ]*)(&(town=[^\ ]*))?[/b]\ HTTP/
RewriteRule ^$ http://www.example.com/Summer_Camp/%1[b].html[/b]?%3 [R=301,L]
Please remember when posting here that everyone's site is different, and we don't know what you want unless you tell us exactly what you want under all possible conditions.
Jim
BTW thanks for the help with that. But if the town exist the old webmaster coded it to drop the /Summer_Camp/ and just keeps the ?p=blah/townname.html
http://www.example.com/Ladies_summer_Camp/Westport_CT.html
does that make since. This is everything I can tell you.
variable active
[edited by: encyclo at 1:47 am (utc) on July 1, 2009]
[edit reason] please use example.com [/edit]