Hey guys,
I'm having a problem with my website. It's currently on cold fusion. Problem is I'm having trouble on how to redirect a non-existing url to an existing preferred url.
As I've tried searching on google. All they presented was coding inside the actual existing page and not on the htaccess file like :
Code: <cfheader statuscode="301" statustext="Moved Permanently"><cfheader name="Location" value=http://www.v7n.com/forums/seo-forum/"http://www.askapache.com"><cfabort>What I'm looking for are codes placed on the .htaccess file.
Thanks. Hello,
I have some websites on .cfm as well but the .htaccess for it is not that difficult for me. Maybe there is just a problem with one of the codes that you used. Can we see it? (you can replace the domain with http://www.example.com
After you implement it, you can check the status of your header there to make sure it worked: http://www.seoconsultants.com/tools/headers
If you want to use htaccess, which is recommended, check this site: http://www.webconfs.com/how-to-redirect-a-webpage.php
It gives you different redirect depending on what you are running your site on.
Let me know if that helps. So the codes will be placed on the webpage header instead?
So what about if the link is non-existing, how will 301 redirect it?
thanks. It's always better to redirect using htaccess if you have access to it and that's how I would recommend redirecting all your pages, existing or non existing.
If you cannot access it for any reason, I believe the code I pasted should do the trick.
I'm having a problem with my website. It's currently on cold fusion. Problem is I'm having trouble on how to redirect a non-existing url to an existing preferred url.
As I've tried searching on google. All they presented was coding inside the actual existing page and not on the htaccess file like :
Code: <cfheader statuscode="301" statustext="Moved Permanently"><cfheader name="Location" value=http://www.v7n.com/forums/seo-forum/"http://www.askapache.com"><cfabort>What I'm looking for are codes placed on the .htaccess file.
Thanks. Hello,
I have some websites on .cfm as well but the .htaccess for it is not that difficult for me. Maybe there is just a problem with one of the codes that you used. Can we see it? (you can replace the domain with http://www.example.com
After you implement it, you can check the status of your header there to make sure it worked: http://www.seoconsultants.com/tools/headers
If you want to use htaccess, which is recommended, check this site: http://www.webconfs.com/how-to-redirect-a-webpage.php
It gives you different redirect depending on what you are running your site on.
Let me know if that helps. So the codes will be placed on the webpage header instead?
So what about if the link is non-existing, how will 301 redirect it?
thanks. It's always better to redirect using htaccess if you have access to it and that's how I would recommend redirecting all your pages, existing or non existing.
If you cannot access it for any reason, I believe the code I pasted should do the trick.