Welcome Guest, Not a member yet? Register   Sign In
ht access confusion
#1

[eluser]bugboy[/eluser]
Hi all

I've recently built a site in CI and its working great.

The thing is we're getting a load of old links back using query strings.

Now the sites structure has changed and we need to redirect 301 to these new pages.

I know how to do a simple 301 redirect using htaccess but as some of the have query strings thats not working.

this is what i have so far.

Code:
http://www.example.co.uk/about.php?page=1&item_id=1

i need that and any variation to go to

Code:
http://www.example.co.uk/about


this is what i have working so far

Code:
RewriteCond %{QUERY_STRING} ^page=(\d+)$
RewriteRule ^/about.php$ http://www.example.co.uk/about? [L,R=301]

but i can't seem to get it working with the second parameter

any help would be greatly appreciated.

Thanks Bug


Messages In This Thread
ht access confusion - by El Forum - 05-01-2009, 06:00 AM
ht access confusion - by El Forum - 05-01-2009, 06:28 AM
ht access confusion - by El Forum - 05-01-2009, 06:48 AM
ht access confusion - by El Forum - 05-01-2009, 06:58 AM
ht access confusion - by El Forum - 05-01-2009, 07:07 AM
ht access confusion - by El Forum - 05-01-2009, 07:30 AM



Theme © iAndrew 2016 - Forum software by © MyBB