erme Posted June 10, 2010 Share Posted June 10, 2010 Hi, How can I do something like this (but obviously so it works) ?? RewriteRule ^latest-news/viewpost/23.html /latestnews/blah/blah/blah/? [R=301,L] Many thanks Link to comment https://forums.phpfreaks.com/topic/204407-multiple-folder-url-rewrite/ Share on other sites More sharing options...
cags Posted June 10, 2010 Share Posted June 10, 2010 Not a clue as I haven't got the faintest clue what you are trying to ask. Link to comment https://forums.phpfreaks.com/topic/204407-multiple-folder-url-rewrite/#findComment-1070466 Share on other sites More sharing options...
erme Posted June 11, 2010 Author Share Posted June 11, 2010 I want www.site.co.uk/latest-news/viewpost/23.html to redirect to www.site.co.uk/latestnews/blah/blah/blah/ Link to comment https://forums.phpfreaks.com/topic/204407-multiple-folder-url-rewrite/#findComment-1070707 Share on other sites More sharing options...
erme Posted June 11, 2010 Author Share Posted June 11, 2010 So I am basically trying to force the old URL (which isnt there anymore) to the new URL Link to comment https://forums.phpfreaks.com/topic/204407-multiple-folder-url-rewrite/#findComment-1070718 Share on other sites More sharing options...
Daniel0 Posted June 11, 2010 Share Posted June 11, 2010 If you give me a deterministic way of determining that with only that information available, I'll write a rewrite rule for you. Link to comment https://forums.phpfreaks.com/topic/204407-multiple-folder-url-rewrite/#findComment-1070730 Share on other sites More sharing options...
erme Posted June 11, 2010 Author Share Posted June 11, 2010 this is all I have: RewriteEngine On RewriteRule ^old-page.html /newpage/? [R=301,L] #THIS WORKS RewriteRule ^latest-news/viewpost/23.html /newpage/? [R=301,L] #THIS DOSENT WORK Link to comment https://forums.phpfreaks.com/topic/204407-multiple-folder-url-rewrite/#findComment-1070733 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.