Forum Moderators: open
I have designed a website which, to my surprise and delight, has been accepted well and become fairly popular.
I just kept adding more great pages. Now I have hundreds of pages and every time I want to change a link on my menu I have to do it to hundreds of pages!
I have looked into a php include but that would require too much of an overhaul. I would have to changed every page from html to php!
I have experiemented with CSS but that only seems to be able to handle design....not function.
How do I put my site menu on one page and call if from all other pages WITHOUT USING FRAMES!
Thank you for your suggestions in advance and I feel very fortunate to have found this forum!
I knew this was the place to come for answers!
Okay.....I will look into php parsing as html.
Will I have to change the extension on every page from html to php?
That is what I am trying to avoid. I have spent 2 years accumulating my incoming links and I do not want to give them up!
Any information about this would greatly help.
How will a php include effect my SEO and ranking?
Thanks again and have a great day!
Okay.....I will look into php parsing as html.
Will I have to change the extension on every page from html to php?
To make .html files be parsed for PHP code you just need to create and upload a file called .htaccess with the following content:
AddType application/x-httpd-php .php .php3 .phtml .html
Hope this helps,
Elijah
It's good design practice to have an include file for major repetitive page elements - header, footer, navbar, for example. That make adjusting any one of these areas as simple as uploading a new version of a small file.
Tools like Dreamweaver have site templates that let you change all pages on a site by changing the template. The downside is that once you get to hundreds of pages, it will update all the pages on your local drive; you must then upload the pages to the site. By the time you get to thousands of pages, this is very cumbersome. For small sites, though, it works; in addition, the use of templates can let you do major page restructuring and redesign around your content.
Yet another approach would be to convert to a content management system (CMS). There are some good free ones as well as commercial titles. This approach puts content in a database and displays it using templates. Site design can be changed by changing the template; usually, you can use different templates for different types of content or area of the site. The big plus of a CMS is that it makes adding new content very easy, often just filling in a web form. Duplicating your current page structure might be difficult, though.
I actually have a Xoops CMS integrated with another one of our websites and just love it!
I am interested in SSI as well as the Php.
Which is easiest to use and configure?
Most importantly, which is reccommend for best SEO!
Search Engine Ranking is very important to us!
Man...I love this Forum!
Thanks!
If you're in this for the long haul, learning PHP and MySql now will pay off in spades in the future.
I may be pushing my luck here but I would love to know more about that
mod_rewrite
It sounds like something I could do immediately while I learn more php.
The php is not looking too terribly difficult either.
Thanks for the info!
You just do not know how much you all have helped!
A good primer, for starters:
For mod_rewrite beginners [webmasterworld.com]
Then help yourself to the "buffet":
Google search results on WebmasterWorld [google.com]