Newbie Question: Search interfering with connection to host
Sorry for the newbie question but I'm having a sudden problem with the migration of my Drupal 7 site from shared hosting to the Linode VPS.
I followed the great documentation and all seemed to be going well: I set up my Linode with Ubuntu 12 and LAMP, and moved my database and Drupal files onto my new server. I was able to view my website (as an anonymous user) and access the phpmyadmin by inserting the server IP into my Safari browser. _My first issue came up when I found that I was not able to log into my Drupal 7 site as an admin user, and some searching indicated that it might have something to do with enabling mod-rewrite. So I did that via terminal and restarted apache2.
Now, I cannot type in my host name or ip address in the browser bar as it is re-routed to a dnslooking/search engine results page, (i.e.,
So I've now disabled mod rewrite thinking that was the problem and I'm still no longer able to view my website. Even when I click on the pages that formerly worked in my history (including phpmyadmin) I'm again brought back to that search engine redirect.
As this is my first setup, I'm sure I've done something wrong but if there is anybody who could at least tell me what I could specifically google for help I'd appreciate it very much!
Thanks,
Meadowlarque_
4 Replies
That page is from your internet service provider (Time Warner Cable). It is very common for an ISP to serve up ads when you type in an invalid domain name, url, etc (or something gets redirected to an invalid URL).
Your problem may have been caused mod_rewrite depending on what changes you made. It looks like your Mac and Safari are serving up cached pages for you (that's probably why you're still seeing the dnsrsearch.com page).
Have you tried your IP address in a different browser?
Have you cleared the cache is Safari?
Have you tried your IP address on another device (computer, tablet, smartphone, etc)?
As far as your mod_rewrite you'd have to post the code you were trying to use when this started happening (be sure to use the 'code' tags when posting the code so we can read it as nature intended).
MSJ
So, my question now, if anyone can help, is related to mod rewrite…
This is what I used to enable mod_rewrite via terminal:
sudo a2enmod rewrite
Is there another approach I should have taken to debug this problem (not being able to log in to Drupal)?
Thanks again,
Meadowlarque
We'd need to see the mod_rewrite code in your .htaccess file. That's where the action happens
MSJ
To do so, I had to nano edit the /etc/apache2/sites-available/default to make sure the Directory setting in my root folder says "AllowOverride ALL"
For better quality information/examples, these links helped me the most: