turn off url rewrites from sql / database
The table is core_config_data
Search the path column for web/seo/use_rewrites
Change the value column to 0
Clear your Magento cache so the config table gets re-read.
The table is core_config_data
Search the path column for web/seo/use_rewrites
Change the value column to 0
Clear your Magento cache so the config table gets re-read.