I recently created a copy of a live opencart website to my localhost for testing purposes. The way that I did this goes as follows
1. Copied all files from live site to local drive
2. Exported a backup of live site through phpmyadmin
3. Copied all files to apache root directory
4. Changed configs for public_html/config.php and admin/config.php to reflect localhost and modified https to http
5. Changed config Database to a test name
6. Created new database with test name, imported database through phpmyadmin tools.
7. Disabled all htaccess files by renaming them .htaccess.txt
8. Now I currently have access to the localhost site. However, all the SEO urls are returning 404 errors.
9. Mod rewrite is on, but I believe that I have to modify my htaccess. files before I enable them as I'm on localhost.
Can someone advise me on how to gain access to these urls?
Thanks for any and all advice.
The following is a copy of my htaccess.txt at root directory
Code: Select all
<IfModule mod_deflate.c> SetOutputFilter DEFLATE <IfModule mod_setenvif.c> # Netscape 4.x has some problems... BrowserMatch ^Mozilla/4 gzip-only-text/html # Netscape 4.06-4.08 have some more problems BrowserMatch ^Mozilla/4\.0 no-gzip # MSIE masquerades as Netscape, but it is fine # BrowserMatch \bMSIE !no-gzip !gzip-only-text/html # NOTE: Due to a bug in mod_setenvif up to Apache 2.0.48 # the above regex won't work. You can use the following # workaround to get the desired effect: BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html # Don't compress images SetEnvIfNoCase Request_URI .(?:gif|jpe?g|png)$ no-gzip dont-vary </IfModule> <IfModule mod_headers.c> # Make sure proxies don't deliver the wrong content Header append Vary User-Agent env=!dont-vary </IfModule> </IfModule>
Code: Select all