Support

Site Restoration

#22843 Restore to Wamp Server - .htaccess issue/Use URL Rewriting

Posted in ‘Site restoration’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

PHP version
n/a
CMS Type
Other
CMS Version
n/a
Backup Tool Version
n/a
Kickstart version
n/a

Latest post by dlb on Tuesday, 23 June 2015 12:33 CDT

Tech4Impact
I read that an untested backup is no backup at all. So I set a goal to accomplish testing my backup.

I have installed WampServer Version 2.5 and have used kickstart to upload and create a local copy of mywebsite.

All works well if turn off "Use URL Rewriting". I believe based upon my readings that this is most likely an .htaccess.

I know that when on the home page works but all other pages don't, so it must be related to .htaccess and rewriting.

For testing purposes my backups work; however, I would like figure out why I must turn off the URL rewriting as I may use Wamp to create sites before uploading.

Any insights?

dlb
My thoughts, in descending order or probability:
  1. I think mod_rewrite is disabled by default in WAMP. Make sure mod_rewrite is turned on.
  2. Your .htaccess file needs the line
    RewriteEngine On
  3. If your site is not installed in the Document Root of your WAMP site (if it is in a subfolder), you may need to update
    RewriteBase /
    in your .htaccess file and add the subfolder name.
  4. Check the $live_site variable in your configuration.php file. This one is not likely, you can usually see when live_site is messed up from the home page.
Congratulations on your paranoia! Mine has served me well over the years.


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

Tech4Impact
For others who are searching as I spent a bunch of time trying to find it

1. mod_rewrite - was enabled previously
2. .htaccess file needs the line RewriteEngine On - this was on
3.If your site is not installed in the Document Root of your WAMP site (if it is in a subfolder), you may need to update RewriteBase / in your .htaccess file and add the subfolder name. - This was the fix I just added the directory the site was added

Thank you for the help!

dlb
You're welcome!


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!