|
|||||||
New to SitePoint Forums? Register here for free!
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 | |||
|
SitePoint Wizard
![]() ![]() ![]() Join Date: Nov 2004
Location: Right behind you, watching, always watching.
Posts: 5,975
|
.htaccess 301 redirect and then another redirect ... need to stop this
I'm at the end of fixing what was an abomination of a website, don't even want to go into the mess the old developer had going but trust me it was bad.
So anyway, I have to do 301 redirects on what pages were indexed by the SEs to the new SE friendly URLs but I also run a mod_rewrite on my page names to 'flip' them into my PHP properly. For that 'onsite' rewriting I use this: Quote:
Quote:
Quote:
Of course this will only happen until Google deletes the old indexed pages from their system but who knows how long that could take. Any help would be appreciated! |
|||
|
|
|
|
|
#2 |
|
Hosting
![]() ![]() ![]() ![]() Join Date: Feb 2002
Location: Auckland
Posts: 11,069
|
dc,
mod_alias takes precedence over mod_rewrite so it will ALWAYS be executed first (ergo, the reason for RewriteBase). However, if you're going to make CONFLICTING redirects (mod_alias and mod_rewrite), then you must expect such conflicts. There MIGHT be a way around this BECAUSE you infer a change in PAGE file extension. Rather than exclude a series of filename extensions WHILE ALLOWING the dot character ([^/]+ ONLY disallows the slash character), specify that you will only redirect on \.html. Regards, DK |
|
|
|
|
|
#3 | |
|
SitePoint Wizard
![]() ![]() ![]() Join Date: Nov 2004
Location: Right behind you, watching, always watching.
Posts: 5,975
|
Quote:
|
|
|
|
|
|
|
#4 | |
|
Hosting
![]() ![]() ![]() ![]() Join Date: Feb 2002
Location: Auckland
Posts: 11,069
|
DC,
Quote:
Regards, DK |
|
|
|
|
![]() |
| Bookmarks |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
|
All times are GMT -7. The time now is 15:53.













Hybrid Mode
