Change index.php to blog.php
-
I’ve seen this asked but never correctly answered.
I want to change index.php to blog.php and have it reside in the ROOT folder – Why? because I already have an index.php page for my main site.
Why not put it in it’s own folder you ask? – because I use include files for my site and that would require changing relative paths to absolute paths.
Example: My home page is index.php which pulls in includes/navigation.php and also calender/calendar.php.If my blog is in its own folder (blog), then the include files within the calendar script look like “mysite.com/blog/calendar/images/…”
When I change index.php to blog.php, The link always goes to mysite.com/blog.php/ – notice the slash after blog.php. It’s trying to send it to another folder.
Any help is appreciated.
- The topic ‘Change index.php to blog.php’ is closed to new replies.