.htaccess settings in root directory

skibikekite
13 years, 1 month ago
Hi,

I have successfully installed MJ.  I have followed the OST video instructions, including the changes to .htaccess.  However, I continue to get a 404 error for iphone.freeridestash.com.  This subdomain points to the root directory for the site, not an iphone subdirectory.  I have tried it both ways, along with many different rewrite codes I have come across.  Nothing is seeming to get me a result on the iphonetester.com.  

I just downloaded the extension and just updated Joomla 1.7.  I am on godaddy and did not encounter any problems with the install.  The extensions appears to be working smoothly on the back end.  The mobile site (without mobile templates)  seems to be working.  However, I need to change the menus for a mobile interface.

Thank you, Tracy
dryabov
13 years, 1 month ago
What is URL of your site? And what is current content of .htaccess?
skibikekite
13 years, 1 month ago
I have set up .htaccess exactly as described on OST.

RewriteCond %{HTTP_HOST} ^freeridestash.com$ [NC]RewriteRule ^(.*)$ www.freeridestash.com/$1  [R=301,L] 

I now have it functioning reasonable well on the iphonetester.com site, although my embedded videos do size correctly.  I am now trying to get this working on my Android.  It correctly shows the "pda" redirect in the address bar, but then goes one step further to mobile mail.  Where did this come from?  How do I get rid of it so that people actually reach my site.

While I am struggling a little with this, I do see the promised potential.

Cheers,
Tracy
skibikekite
13 years, 1 month ago
Please see previous reply.  Just to be clear, the .htaccess addition was

RewriteCond %{HTTP_HOST} ^freeridestash.com$ [NC]
RewriteRule ^(.*)$ www.freeridestash.com/$1  [R=301,L] 

I had misplaced # somewhere.  It is now working on the iPhone, but no Android.  Regardless, it would be helpful if this redirect information for .htaccess was presented my cleary than hidden in the video.  Just a suggestion.

Cheers,
Tracy
dryabov
13 years, 1 month ago
MobileJoomla correctly redirects Androids to pda.freeridestash.com, but your webserver redirects requests to pda.freeridestash.com to mm.mobilemail.secureserver.net/login.php?domain=pda.freeridestash.com . So, for sure the problem is because of incorrect server settings (e.g. it may be that you set up iphone subdomain, but not pda one).
skibikekite
13 years, 1 month ago
Do I need different code for the redirect in .htaccess then?  The iPhone and pda subdomains are setup identically.
dryabov
13 years, 1 month ago
skibikekite wrote:
Do I need different code for the redirect in .htaccess then?

No. You have correct non-www->www redirect that doesn't affect other subdomain.

skibikekite wrote:
The iPhone and pda subdomains are setup identically.

Recheck it. There is no PHP signature in redirect headers, so it's for sure server issue.
skibikekite
13 years, 1 month ago
It is nice when things are black and white; when you know right where to look.  Thanks for all of your help!
skibikekite
13 years, 1 month ago
I am wondering if this is the source of my issue being directed back to the homepage when an article link is clicked or typed in. Do I need something different in htaccess to get the rest of my URL preserved while changing the subdomain?

By continuing to use this site you consent to the use of cookies on your device as described in our cookie policy unless you have disabled them. This site will not function correctly without cookies.

I accept cookies from this site.