Site Is Broken After Modifying .htaccess

Please please I need your help!!! It's urgent!!

My website is down and won't load after I uploaded a .htaccess file to the server and deleted it. Here's what was on the .htaccess file:

**************************************************************************************************

DirectoryIndex index.html index.php
RewriteEngine on
# Some hostings require RewriteBase to be uncommented
# Example:
# Your store url is http://www.yourcompany.com/store/cart
# So "RewriteBase" should be:
# RewriteBase /store/cart
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !\.(png|gif|ico|swf|jpe?g|js|css|pdf)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php?sef_rewrite=1 [L,QSA]
Redirect 301 / newwebsite/
****************************************************************************************************************
Please can someone help me. I'm in state of panic and don't what to do.
Thanks

My website is down and won't load after I uploaded a .htaccess file to the server and deleted it. Here's what was on the .htaccess file:

Please check server error logs at first. Most possibly you will find a reason there

If you deleted .htaccess, but you know the content of it, you can create it manually and put this content in it.

I restored my site, thankfully.

One more question...where in the code above do I add a redirect from mysite.com to www.mysite.com?

Add the following lines:

RewriteCond %{REQUEST_METHOD} !POST
RewriteCond %{HTTP_HOST} ^mysite.com$ [NC]
RewriteRule ^(.*)$ http://www.mysite.com/$1 [R=301,L]

before the following code:


            

Hello all,

I'm having crawling issues, here's what's popping up at the end of URLs: ?sef_rewrite=1

?sef_rewrite=1 gets appended to end of my URLs. How can I fix this? Any ideas?

I tried redirecting URLs ending with "?sef_rewrite=1" to the proper URL and that did not seem to fix the problem.

Please help!

Thanks

Hello all,

I'm having crawling issues, here's what's popping up at the end of URLs: ?sef_rewrite=1

?sef_rewrite=1 gets appended to end of my URLs. How can I fix this? Any ideas?

I tried redirecting URLs ending with "?sef_rewrite=1" to the proper URL and that did not seem to fix the problem.

Please help!

Thanks

Please make sure that the URL specified for the store-front on the Administration -> Stores page and URLs in the config.local.php file contains www. It should solve the problem

The URLs in Administration -> Stores and config.local.php both don't contain the www, because we prefer "naked" URL (example.com) instead of the full URL (www.example.com).

Do both URLs need to contain www for that to fix the ?sef_rewrite=1 issue?

It shouldn’t matter unless you have a rewrite rule that is forcing www

What's the solution then? Anyone?

Hi Everyone,

I'm having a ?sef_rewrite=1 issue with my website. I keep getting "?sef_rewrite=1" appended to the end of my URLs especially after my site is crawled. How can I resolve this issue?

Thanks

Hi Everyone,

I'm having a ?sef_rewrite=1 issue with my website. I keep getting "?sef_rewrite=1" appended to the end of my URLs especially after my site is crawled. How can I resolve this issue?

Thanks

This issue requires examination on your server. Please contact us via Help Desk and provide temporary FTP access to your server so we can examine the issue.

Generally this is caused from either the internal or an external sitemap generator. Check your sitemap.xml file for the sef_rewrite=1 appends to the URLs and then go re-create the sitemap. Then check again.

What I've seen is that the sitemap contains the sef_rewirte and so then Google adds it to your page references and the site gladly accepts (and ignores) them.

I checked the internal sitemap.xml file generated by cs cart, but could not identify the problem. In other words, I could not pinpoint ANY URLs with ?sef_rewrite=1

I added an exception to Google Webmasters Tools, telling it to ignore any URL with /*?sef_rewrite=1. I don't know if that would work, but we'll find out as soon as it crawls the site.

But in the meantime, if anyone has an idea to the solution, please help!

Thanks

You have something external that has captured a sef_rewrite=1 parameter and is using it. You can use your webmaster tools (though I can't tell you how) to identify where that reference is coming from. I.e. the referrer for that request.

Hi All,

I'm trying to move my cs cart installation to a new server and need help.

What happened was, after I copied over the old cs cart files to the new server per instructions and tried to access the "new" site via URL, I clicked on "install" and nothing happened. Not sure what's going.

Can someone please provide directions on how to do this?

Thanks

Hi All,

I'm trying to move my cs cart installation to a new server and need help.

What happened was, after I copied over the old cs cart files to the new server per instructions and tried to access the "new" site via URL, I clicked on "install" and nothing happened. Not sure what's going.

Can someone please provide directions on how to do this?

Thanks

Please check the following article:

http://kb.cs-cart.com/move-to-another-server

Additional note: after the database is restored, correct store-front URLs on the Administration->Stores page and clear cache

Hello All,

I followed the instructions on this page: http://kb.cs-cart.co...-another-server

However, am having problems copying the cs cart files from the old server. Here's what's happening...when I go into my FTP program(filezilla and WinSCP) and select ALL the cs cart files on the old server, it's taking FOREVER to download them. I even tried using Cpanel to compress all the files from the old server and then download, BUT it STILL is taking FOREVER to compress. I am getting VERY frustrated with this process.

Can someone please share with me the best way to approach this? I have followed every instructions, but getting stuck on Step 4.

I appreciate all the support.

Thanks

Do a database backup on your old site.

Go into your file manager on your old host and create a zip (or tar) archive of your old public_html directory (contents of public_html, not the directory itself).

When this completes, FTP that archive to your PC or your new site. Put the archive in your new site public_html folder and then use your new file manager to "extract" the archive. The ownerships of files should all change appropriate to your new site configuration.

Go into your admin area and do a restore of the database that you backed up.

Go into your companies area and change the storefront URL's if they've changed.

Alternatively, you can use WHM to move a cPanel account from one host to another and it will handle all the details for you. Most hosting providers will do this for you as part of your signing up with them.

It's taking FOREVER to compress files or create a zip or tar archive on my old host.

I can't move cPanels across hosts. It's not an option at this point. The reason I am looking to move or copy/clone the site, is because I want to test a new theme on my website to make sure it works 100% without breaking anything.

I guess, I need a ideas on the way to achieve this.

Thanks