Redirects And Changing Site Url

liunx

Guest
I'm using Expression Engine and I redesigned my site which included changing the site url from <!-- w --><a class="postlink" href="http://www.biom.net/">www.biom.net/</a><!-- w --><b>dojo</b>.php to <!-- w --><a class="postlink" href="http://www.biom.net/">www.biom.net/</a><!-- w --><b>index</b>.php.<br /><br />When I look at AWStats I'm seeing that I'm still getting hits to pages like /<b>dojo</b>.php/photoblog/rss_2.0/ and /<b>index</b>.php/photoblog/rss_2.0/. Does this mean that someone had either bookmarked the old .../dojo.php page, or opened it before I made the conversion to .../index.php?<br /><br />And, do I need to do something like a 'redirect' to point users from old bookmarked pages to the new urls?<br /><br />I've never done this type of conversion before and I'm concerned about the confusion it may cause my existing readers.<br /><br />Thanks for your insights!<!--content-->
Hello,<br /><br />If you go to <!-- w --><a class="postlink" href="http://www.biom.net/dojo.php">www.biom.net/dojo.php</a><!-- w --> do you get redirected??<br /><br />If not, you can set up a redirect in cpanel to the new address which will help solve your problems<br /><br />JimE<!--content-->
<!--quoteo(post=168650:date=Mar 7 2006, 11:22 AM:name=TCH-JimE)--><div class='quotetop'>QUOTE(TCH-JimE @ Mar 7 2006, 11:22 AM) <a href="http://www.totalchoicehosting.com/forums/index.php?act=findpost&pid=168650"><img src='http://www.totalchoicehosting.com/forums/style_images/1/post_snapback.gif' alt='*' border='0' /></a></div><div class='quotemain'><!--quotec-->Hello,<br /><br />If you go to <!-- w --><a class="postlink" href="http://www.biom.net/dojo.php">www.biom.net/dojo.php</a><!-- w --> do you get redirected??<br /><br />If not, you can set up a redirect in cpanel to the new address which will help solve your problems<br /><br />JimE<!--QuoteEnd--></div><!--QuoteEEnd--><br />Thanks, Jim. This worked for the index page redirect, but not for the subsidiary pages like /dojo.php/photoblog to /index.php/photoblog. Do I have to do a redirect for everypage under the /dojo.php url to get them to point to their updated /index.php counterpart? (I have quite a few pages to redirect if that's the case <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/sad.gif" style="vertical-align:middle" emoid=":(" border="0" alt="sad.gif" /> <br /><br />Thanks for the help!<!--content-->
<!--quoteo(post=168721:date=Mar 7 2006, 04:46 PM:name=ramone_kalsaw)--><div class='quotetop'>QUOTE(ramone_kalsaw @ Mar 7 2006, 04:46 PM) <a href="http://www.totalchoicehosting.com/forums/index.php?act=findpost&pid=168721"><img src='http://www.totalchoicehosting.com/forums/style_images/1/post_snapback.gif' alt='*' border='0' /></a></div><div class='quotemain'><!--quotec-->Thanks, Jim. This worked for the index page redirect, but not for the subsidiary pages like /dojo.php/photoblog to /index.php/photoblog. Do I have to do a redirect for everypage under the /dojo.php url to get them to point to their updated /index.php counterpart? (I have quite a few pages to redirect if that's the case <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/sad.gif" style="vertical-align:middle" emoid=":(" border="0" alt="sad.gif" /> <br /><br />Thanks for the help!<!--QuoteEnd--></div><!--QuoteEEnd--><br />I added the following to my .htaccess file to get a global redirect from .../dojo.php to .../index.php but the server is only redirecting the old index page -- dojo.php -- and not any of the subpages -- dojo.php/page/. <br /><br />The following code is all I have on the .htaccess file. Is there some modification I need to make?<br /><br />Thanks!<br /><br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->Redirect 301 /dojo.php http://www.biom.net/<!--c2--></div><!--ec2--> <br /><br /><br />Thanks!<!--content-->
Check out the <a href="http://www.ilovejackdaniels.com/cheat-sheets/mod_rewrite-cheat-sheet/" target="_blank">Rewrite Cheat Sheet</a>.<!--content-->
Hello,<br /><br />Sorry I haven't had time to look this one up much, but try searching google for "RedirectMatch" and try this:<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->RedirectMatch 301 /dojo.php(.*) http://www.biom.net/<!--c2--></div><!--ec2--><br /><br />JimE<!--content-->
 
Back
Top