Free File Hosting - Debt - Cell Phones - Credit Card Consolidation - Home Loan

PDA

View Full Version : 1and1 hosting and mod_rewrite...


dmri
Apr 17th 2006, 8:28 pm
Does anyone here use 1and1 hosting and also use the mod_rewrite function? I have not been able to get it to work? Tell me about your experience.

Any other hosting providers that support mod_rewrite? Thanks.

Cricket
Apr 17th 2006, 9:04 pm
Does anyone here use 1and1 hosting and also use the mod_rewrite function? I have not been able to get it to work? Tell me about your experience.

Any other hosting providers that support mod_rewrite? Thanks.

If you are on Linux based hosting there shouldn't be a problem. I have used 1and1 for a few years now without a single issue.

dshah
Apr 17th 2006, 9:09 pm
I was using 1and1 hosting and couldn't find mod_rewrite working. (I wanted it for mambo SEO). I have to move away from their hosting to get it working.

Cricket
Apr 17th 2006, 9:34 pm
Assuming you were not on Windows based hosting, there should not have been a problem. Did you follow their FAQ (http://faq.1and1.com/scripting_languages_supported/configuring_apache_server_using_htaccess/4.html) concerning mod_rewrites?

dshah
Apr 17th 2006, 9:53 pm
Assuming you were not on Windows based hosting, there should not have been a problem. Did you follow their FAQ (http://faq.1and1.com/scripting_languages_supported/configuring_apache_server_using_htaccess/4.html) concerning mod_rewrites?

Mine was definitely Linux. I think I did all I were supposed to be doing, but couldn't get SE friendly URLs for Mambo/Joomla working at all (which in turn requires mod_rewrite, I had verified other pre-conditions satisfied).

When I moved to godaddy/beachcomber it worked without any trouble at all.

exam
Apr 18th 2006, 12:54 am
I've used mod_rewrite on 1and1 hosting. If you have a specific problem, post it and maybe we can help.

dmri
Apr 18th 2006, 6:29 am
I have tried several different pieces of code to try to get mod_rewrite to work...but no success. I am trying to clean up my urls. My site is built upon phpbb. Here is an example of a url:

www.advertisingopinions.com/index.php?c=3

Here is an example of the code I am using on mod_rewrite (I have tried several different iterations):

Options +FollowSymLinks
RewriteEngine On
RewriteRule ^c/([^/.]+)/?$ index.php?c=3

exam
Apr 18th 2006, 10:07 am
try this:Options +FollowSymLinks
RewriteEngine On
RewriteRule ^c\/([^/]+)\/?$ index.php?c=$1 [QSA, L]and make sure the script is producing URLs like this: www.domain.com/c/8 with an optional trailing slash.

dmri
Apr 18th 2006, 11:58 am
Interesting...after posting your suggestion I got a "500 Internal Server Error"

No luck...

dshah
Apr 18th 2006, 12:04 pm
Interesting...after posting your suggestion I got a "500 Internal Server Error"

No luck...

Are you using any CMS? (like mambo/joomla)?
If you want to try out some other hosting, I can offer you test account (through my reseller)

Cricket
Apr 18th 2006, 1:20 pm
Interesting...after posting your suggestion I got a "500 Internal Server Error"

No luck...

Have you called the tech support number for help?

dmri
Apr 18th 2006, 3:23 pm
I am not using a CMS. Just a site with a phpbb back end. Yes, I have called support. Their answer is:

"Yes, we do support mod_rewrite but we do not offer support for these features."

Have I hit a wall? Any other ideas?

Cricket
Apr 18th 2006, 3:36 pm
I am not using a CMS. Just a site with a phpbb back end. Yes, I have called support. Their answer is:

"Yes, we do support mod_rewrite but we do not offer support for these features."

Have I hit a wall? Any other ideas?

When I do a header check on your domain it shows that you currently have a 302 redirect in place.

HTTP/1.1 302 Moved Temporarily =>
Content-Length => 0
Location => /index.php?c=3?ABCDEFGH

When I check DNS Check (http://www.dnsstuff.com/tools/whois.ch?ip=www.advertisingopinions.com+) on this domain, it shows the domain parked with GoDaddy.

Is this perhaps related to why things are not working the way you expect? Or, have you made these changes since you last posted?

dmri
Apr 18th 2006, 4:42 pm
I have actually mirrored this site on a 1and1 server. This is where I am doing DEV and testing. I also just ran a header check on www.advertisingopinions.com and so no 302.

Cricket
Apr 18th 2006, 5:00 pm
I have actually mirrored this site on a 1and1 server. This is where I am doing DEV and testing. I also just ran a header check on www.advertisingopinions.com and so no 302.

I must be misunderstanding what you are saying/asking because there is definitely a 302 redirect in place on the domain you have posted. My post above is a copy paste of the results, along with the DNS check results.

antonafro
Jun 21st 2007, 10:28 pm
I have actually mirrored this site on a 1and1 server. This is where I am doing DEV and testing. I also just ran a header check on www.advertisingopinions.com and so no 302.

I just discovered a possible cause of the 1and1 issue.

After several hours of toying with htaccess and getting nowhere, I discovered that the file was meant to be .htaccess and not the default htaccess.

The missing fullstop prefix was the cause! DUH. Feel kinda daft now, cause I should have known better.

Now I can get some well deserved sleep. :o


.