-
php include inside html.file + extensions question
Thank you for answering back :-) Shall I consider this as the final and best bet ? Cheers,
-
php include inside html.file + extensions question
Sorry, just saw your reply :-( But what about changing the extension + 301 Redirect + Rewriting the .php url to html for SEO? Should work, no ?
-
php include inside html.file + extensions question
Well well well... I am grateful for all these replies Thank you !!! After reading , I see that some of you say that my method could work, but some others say that it's old fashioned or might not work..or that it is some kind of Robinson trick. That makes a lot, but all these replies are very useful...I see that my idea is not very straight forward, and I don't like this. SO: I'll go to the best/most optimum/ newest way which seems to be : to change all my .html files to .php I am just afraid for my SEO / SERP Does the 301 Redirect not gonna hurt in this case?
-
php include inside html.file + extensions question
Hi. First my apologies...I am not very comfortable with Php yet. 1st/ As your code shows , it concerns 1 page ? As said earlier, I have 20 pages. There must be a misunderstanding. 2nd/ Indeed, I was thinking about going only to Php extensions...but the SEO problem stopped me to do so. I am reading all answers with interest and try to make my way...
-
php include inside html.file + extensions question
Hello. Could you be more explicit with "heath robinson" trick ? / I am french and have a limited understanding in English sometimes I can't ?? But I saw many things about this...
-
php include inside html.file + extensions question
The title of ths topic was hard to find... Several problems, several questions but 1 Goal: I have 20 pages and some updates are hard to follow as my site grows ( ie : menu). So, I extracted my menu and put it into another file and saved it apart as topnav.html in folder "includes" To call now my menu into all my .html files I inserted the following : <div id="header"> <?php include('includes/topnav.html'); ?> </div> To be able to parse the php include I input the following in my htaccess file which look like that now ( note : my site runs with Apache CGI / Php5 RewriteEngine on RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.html\ HTTP/ RewriteRule ^index\.html$ http://mysite.com/ [R=301,L] AddHandler application/x-httpd-php .htm .html #THIS IS THE CODE I FOUND EVERYWHERE ON THE WEB TO ALLOW MY PHP TO BE PARSED. # Error Pages ErrorDocument 404 /index.html #Other rules blahblah... So far no luck. If I try to change my extension to .php it works, but I do not want to do so, as it will hurt my SEO. What do i do wrong ? I've previously asked to my provider and he told me to use the addHandler instead of addType directive. On the other hand, I also found in my researches on the web, that taking out all file extension is the best right now. so that files look like www.mysite.com/the-story instead of www.site.com/the-story.html To sum-up: How can I use php include in all my html files and remove all file extensions and how ? I hope my question(s) won't be too messy ... THANK you very much. I have spent 2 days on this. I am stumped.
-
import my blog feed to my website
Yes, I know, but I wish to keep my website as it is. Very happy, much more flexible and controlable for me...
-
import my blog feed to my website
Hi ! Tx for passing by... I run a WP blog. My website is on pure HTML/CSS site, if this is what you mean ...
-
import my blog feed to my website
Hello, I run a blog hosted on my domain root. I would like to implement a small window on my main website with the latest posts inside. This has to do with the feed XML, but wher do I start ? Any tutorial ? Or advice ? Thank you for your precious help, Cheers
-
How can i achieve this weather forecast design ?
BOMB !!! Exactly what I was looking for !!!! Fantastic :-) Thank you so much Cheers,
-
How can i achieve this weather forecast design ?
Hello and happy new Year 2011 ! I am googling and googling to find an explanation or tutorial to customize a weather live and forecast for a website. I selected 2 examples to show you what i like. But I cannot figure out where to start... I looked into the sources and inspected elements but I cannot see any useful info. Thank you for your ideas and eventually link to a good tutorial...Whatever that could help this very ( complicated for me ) simple problem.
-
shipping cost per country. Totally lost
Thank you both of you Unfortunately I can not change host...I recently hosted my site with them Any alternative ?
-
Is there a "best" software or solution to deal efficently with paypal ?
Thank you... What do you mean by IPN ? Could you be more precise...Because, sending he datas to Paypal is actually my problem. The point is not the variables on the type of items but the update of the basket that needs to be done inside my siite before going to Paypal... The all process done here, is exactly what I need. I start to wonder if I should ask and pay the job !! Somebody ...may'be ??
-
Which 3rd party could achieve this payment
Hi What do you mean ?? The Credit Card ? Sorry for misunderstanding, but I was meaning the basket update with variables destinations...
-
link links from my subdirectory blog to site root -problem with URL
My blog is in a subdirectory www.mysite.com/blog My blog has a hardcoded menu to maintain the navigation on the all site. Viewers navigate inside the blog and can access the main site ( site home, about, editions etc...) from the menu. Today I see that Google shows Crawl Error for urls from my blog to my site root pages. Example of my hardcoded menu function add_menu() { { ?> <div id="menu"> <ul id="cent"> <li><a href="../../../../index.html">Home</a></li> <li><a href="../../../../editions.html">editions</a></li> <li><a href="../../../../about.html">about</a></li> </ul> </div> <?php } } add_action....etc... The URl problem comes out when pages are linked deeper into the blog i.e : /category/tag... I am very new to this... I feel there is a mistake in my code... What should I do ? More generally, how do I write urls that link back to the root of my site ? Thank you,