Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 28th Feb 2012, 09:28 PM   #1
I Do Voice Over Work
War Room Member
 
rlhurst's Avatar
 
Join Date: 2011
Location: Oregon
Posts: 581
Thanks: 34
Thanked 129 Times in 96 Posts
Default
PHP "Regular" site vs. HTML "Mobile" version...?
Share on: 
fb share twitter share gplus share more share

I posted the same question in programming but wanted to expand the exposure to the expert base. Hope someone can help me!

I developed an html mobile site for a client who's main site is php. The problem is when I try to access m.clientssite (the subdomain I created) I get a page not found. I called Hostgator and they said I need to turn off the rewrite engine in htaccess to be able to view it. I did and then I could view it.... however, the main site links did not work... I got page not found. So, I turned rewrite back on so the main site worked, but now, no mobile! I called Hostgator again and got a different tech who said there was no way around the problem... that it was a catch 22.

So, before I give up, I thought I'd take advantage of you genius people here to see if I can maybe add something in the htaccess file that will fix it. Here is what is currently in the file..



RewriteEngine on
RewriteBase /
RewriteRule ^(.*)\.html$ $1.php [L]

AddType text/html .shtml
AddHandler server-parsed .html
AddHandler server-parsed .shtml
Options Indexes FollowSymLinks Includes



My client uses this php site as the master site to over 50 others that are affiliates so he can update them all at once. Thanks for any help!

I do voice over work... here's a SAMPLE
rlhurst is offline  
Unread 29th Feb 2012, 12:42 AM   #2
Mobile+WP = JumpMobi.com
War Room Member
 
Jay Moreno's Avatar
 
Join Date: 2009
Location: San Antonio, Tx
Posts: 1,271
Thanks: 301
Thanked 449 Times in 309 Posts
Default
Re: PHP "Regular" site vs. HTML "Mobile" version...?
Share on: 
fb share twitter share gplus share more share

i dont use hostgator - but at a guess try placing a second htacess file just in the folder of your mobile site, your htaccess file should only need:

RewriteEngine off

i could be wrong though - but in theory that should overwrite the settings from the main htaccess file for the current folder its located in but enable the original htaccess to keep the main site functioning... hope that makes sense! lol

cheers

jay

Sorry, I am too busy helping people to think of a cool signature!
Jay Moreno is offline  
The Following User Says Thank You to Jay Moreno For This Useful Post:
Unread 29th Feb 2012, 08:07 AM   #3
I Do Voice Over Work
War Room Member
 
rlhurst's Avatar
 
Join Date: 2011
Location: Oregon
Posts: 581
Thanks: 34
Thanked 129 Times in 96 Posts
Default
Re: PHP "Regular" site vs. HTML "Mobile" version...?
Share on: 
fb share twitter share gplus share more share

Thanks Jay, that makes sense....
What I did is create subdomains on the client's main corporate site. The corporate site is in html. So, for the franchise sites (which are php) I placed a redirect to the subdomains on the corporate site... works like a charm!

Since he's happy I don't want to go back in messing with that separate htaccess page, but I will definitely keep that in mind should a similar situation arise!

Ron

I do voice over work... here's a SAMPLE
rlhurst is offline  
Closed Thread


Bookmarks

Tags
html, mobile, php, regular, site, version


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 11:22 AM.