I host my site on Hostgator too, but how do I know they upgrade their PHP versin? I will try out these code and see how it works. Thanks a lot!
SEO Services NZ wrote:
I host my site on Hostgator too, but how do I know they upgrade their PHP versin? I will try out these code and see how it works. Thanks a lot!
Hi SSZ!
Well, if you want to know what version of PHP you have, there are several ways, but the most easiest is, that you log in into your cPanel, an at bottom of left column read the versions of PHP, perl, MySql db etc..
And of course, I had some problems like; all is working (home page etc), and I couldn’t open any of my pages, always would open a home page. In that case I understood thath something is wrong with my .htaccess and rewrite rule.
But of course, this is related also to my CMS, ExpressionEngine, so, as I say in the article, maybe you don’t neet to modify anything, if you don’t using EE.
davor
I think this will help me in many ways.
Bookmarking your site
looking forward to more on this
Thanks
Thanks for the tip. I am always open to new discoveries, particularly in optimizing my site. I do have an update of php version to 5.2.6. Let me see if your solution will work on mine. By the way, have you figured out why the blue question mark after index.php does not work with yours?
Hi, I tried the first method :
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
ever since my installed version of PHP currently is only covered for 5.2.5, but still they’re not working. Oh btw, I’m on ExpressionEngine v 1.6.2. Wondering if it any issues on them too.
gerry leo nugroho wrote:
Hi, I tried the first method :RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]ever since my installed version of PHP currently is only covered for 5.2.5, but still they’re not working. Oh btw, I’m on ExpressionEngine v 1.6.2. Wondering if it any issues on them too.
Hi Gerry
I don’t think that EE version you have is doing that issues, but I recommend you to upgrade your version to the last one, just for security reasons.
You sad that you tried first version, did you tried the second one? Because the first one isn’t working for me, I replaced it with the second solution.
Try it, and send the comment
thanx
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?/$1 [L]
Yeap now trying with the second option, but still no luck? Wondering what when wrong here and there though? Is there any server specific requirements to meet? I’m getting so frustrated here.
Generally speaking you need simple URL rewriting. This solution (second one) is working on my host (HostGator), maybe you could contact your hosting support and see with them. Tell them that the “standard” rewrite tool is not working, and if they could check it, maybe give you another solution.
That could help, I hope so :)
dp
I’m hosting my site on site5 currently, I guess they’ve setup their server the common way. Based on the fact I managed to get the permalink or other .htaccess requirement for other CMS such textpattern and wordpress working just fine. Btw, I starting a thread in case you’re also interested on the subject on EE forums . Many thanks Davor.
gerry leo nugroho wrote:
I’m hosting my site on site5 currently, I guess they’ve setup their server the common way. Based on the fact I managed to get the permalink or other .htaccess requirement for other CMS such textpattern and wordpress working just fine. Btw, I starting a thread in case you’re also interested on the subject on EE forums . Many thanks Davor.
You’re welcome.
If rewrite rule work for wordpress, I think it could work for EE too, but, I don’t know so much about WP :(
thanx again
dp
Yea, I had this problem a while ago but it’s all fixed now - glad to see someone like u helping everyone out
Make Money wrote:
Yea, I had this problem a while ago but it’s all fixed now - glad to see someone like u helping everyone out
You’re welcome. I know how it is when you searchin and aearching for some solution, and you find the right thing that you need.
So I hope it helps
dp
Hey Davor,
I have written a post about LG .htaccess Generator over on my blog. It explains the default rules of the extension which your readers might find useful.
Bascially the extension uses the “include” method for removing the index.php and automatically adds the required template groups and pages.
I also recently encountered an issue with query strings on the site index, specifically Campaign Monitors outgoing email links. I wrote a post about it here.
.htaccess is indeed a very tricky subject that causes lots and lots of headaches.
Cheers Leevi
Levi Graham wrote:
Hey Davor,
I have written a post about LG .htaccess Generator over on my blog. It explains the default rules of the extension which your readers might find useful.
Bascially the extension uses the “include” method for removing the index.php and automatically adds the required template groups and pages.
I also recently encountered an issue with query strings on the site index, specifically Campaign Monitors outgoing email links. I wrote a post about it here.
.htaccess is indeed a very tricky subject that causes lots and lots of headaches.
Cheers Leevi
Hi Levi!
Thanky you for posting more resources that would be very useful for EE users. I’ll also check it, because it has very interesting staff that I was searching and thinking how to do it. :)
I updated my article, so people could find faster your link.
Thank you!
Davor
Hey Davor,
Thanks for the feedback and promoting my link. :)
Cheers Leevi
Thanks Davor for this post, my friend will be so exciting to check this. I really appreciate your work over here :)
This is truly a great read for me!! Once again, thanks for the quality articles you post on your blog!! I admire your articles and informative information you share. Keep up the good work. I have you bookmarked to show this to my brother!
Thanks
u know dp, I’ve been trying to find this info for ages now. As you aptly mentioned, it indeed is brilliant to finally find the proper working solution when you’ve been “searching and searching”. Thanks man, that is one more problem resolved for me. Kudos to you.
Larry wrote:
u know dp, I’ve been trying to find this info for ages now. As you aptly mentioned, it indeed is brilliant to finally find the proper working solution when you’ve been “searching and searching”. Thanks man, that is one more problem resolved for me. Kudos to you.
I’m glad if this solution is the “right” one, and you don’t need keep searching.
thanx
dp





