• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: htaccess redirect doesn't work with default .htaccess
PostPosted: Sun May 08, 2011 3:31 pm 
Offline
Forum Members
Forum Members

Joined: Tue Aug 19, 2008 6:30 pm
Posts: 93
Location: NY
I'm trying to redirect old html pages to their new locations on the newly-built cmsms website using .htaccess 301 redirect.

I think the code is conflicting with the default syntax from the .htaccess file that was in the docs directory (brand new install of 1.9.4.1)

I'm trying to use this code:
Code:
Redirect 301 /page.htm http://my.site.com/page


But what happens is that when I try to go to http://my.site.com/page.htm, the browser is automatically redirected to http://my.site.com/page?page=page.htm

How can I change the .htaccess code so that these 301 redirects are not affected by the other rewrites?


Top
 Profile  
 
 Post subject: Re: htaccess redirect doesn't work with default .htaccess
PostPosted: Wed Aug 10, 2011 4:35 pm 
Offline
Translator
Translator

Joined: Tue Jan 22, 2008 9:57 am
Posts: 31
Yeah, I have the same problem. It would be really great if anybody could shed some light on this. It’s really important because otherwise the new sites have to rebuild their search engine ranking from scratch since basically the whole site has gone and there’s a new one now that has to be reindexed completely.


Top
 Profile  
 
 Post subject: Re: htaccess redirect doesn't work with default .htaccess
PostPosted: Wed Aug 10, 2011 7:40 pm 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Wed Apr 23, 2008 7:53 am
Posts: 5069
Location: The Netherlands
Try something like:
Code:
RewriteRule page-alias.html$ http://www.cmsmadesimple.org/path/to/page-alias [R=301,L]

RewriteRule ^page-alias$ http://www.cmsmadesimple.org/path/to/page-alias [R=301,L]


Hope this helps,

Rolf

_________________
Dutch CMSMS community website cmsms.nl and Wiki wiki.cmsms.nl
--------------------------
My CMSMS Tips and Tricks Weblog and website about Pneumatic Tube Systems / Rohrpost
My other (Dutch) website: Smakelijk eten zonder zout (Design: Compufairy)


Top
 Profile  
 
 Post subject: Re: htaccess redirect doesn't work with default .htaccess
PostPosted: Thu Aug 11, 2011 1:46 am 
Offline
Translator
Translator

Joined: Tue Jan 22, 2008 9:57 am
Posts: 31
Yes! I’ve tried the first of your suggestions and it’s working great, thank you! :)


Top
 Profile  
 
 Post subject: Re: htaccess redirect doesn't work with default .htaccess
PostPosted: Sat Aug 13, 2011 5:35 pm 
http://forum.cmsmadesimple.org/viewtopic.php?f=28&t=55614


Top
  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Arvixe - A CMSMS Partner