Forum Moderators: mack
I am new to web design and have created a site which all runs off the index.php page, when the user clicks on a menu item it just passes 'index.php?page=thepage.html' and the page is displayed. Throughout the pages on the site there will be url's embeded in the page which will take the user off to another page, my question is should these url's follow the same format as my menu and pass 'index.php?page=thepage.html' or should it do the full url to the page including the site name?
Also if all my site runs from the index.php page and the html files are just in the root of the site will this get indexed correctly by a search engine? should I also add meta data to each page even though I hav included it on the index.php page which gets output on every page generated.
I hope I have explained that clearly enough and that some one can advise.
Thanks for reading.
because the menu and site look for the value held in the page variable
I take it then that you didn't write this routine. If you wrote it yourself you'd be able to decide the best way to go.
I think it's redundant to send the next page in a variable, when an "a href" will do the job nicely.
but if it ain't broke, don't fix it.
The code I wrote checks for the current page value as it then highlights this as the active page in the menu (its a php expanding menu). Without doing this when a user clicked on a link to open a page the link would not look like it had been visited or was the active link, as I am new to web development I may have got this all wrong and made it harder for myself but it seems to work nice. So back to my original question ' should i put the full site address in the url's or is it ok just to do 'index.php?page=thepage.html' I take it search engines will be fine with this?
Thanks for the advice its appreciated.