Log in

View Full Version : Dynamic URL to Dynamic url with mod rewrite



sord
10-30-2009, 09:54 PM
Hi guys,
i have a problem with my web page...
I run wordpress blog, and before i was using url-s of this form:
http://webpage.com/myseophrase/title-of-thread
and now i change to:
http://webpage.com/title-of-thread
The problem is that i'm getting allot of 404 pages, and this is no god for google & my PageRank, sow how to rewrite all url-s of type
http://webpage.com/myseophrase/anything
to
http://webpage.com/anything typed by the user?
thanks in advance

bluewalrus
11-02-2009, 02:31 AM
How many pages did you have a few or a lot? You could set something up on your server or have your host set something up for you. See the 300's for information on redirects and which you need or would want.

http://en.wikipedia.org/wiki/List_of_HTTP_status_codes
http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html

For these the pages will still have to exist.

javascript redirect:
http://www.tizag.com/javascriptT/javascriptredirect.php

meta redirect:
http://en.wikipedia.org/wiki/Meta_refresh

sord
11-02-2009, 07:19 AM
Well i'm getting 824 404 Errors, and this is a complete change for my website structure.
Another problem is that i usually on all my threads i link to other threads in my webpage and i must edit all links?
Please, if there is a solution ...

bluewalrus
11-03-2009, 04:32 AM
Go with a 303 server redirect would be my recommendation. I've only had my host do this for me for requests coming from index.html to index.php when index.html was deleted (the 404 problem). I'd think they can set up the 303 to remove that directory name though and just load it in the root.
The links should be corrected with the server redirects also.