Hi, I'm using a new social engine script for a site (yes bought and paid for). The index page is home.php This makes my site: http://www.mysite.com/home.php I want to get rid of the /home.php I assume I need to use an .htaccess file or something. Does anyone have any idea on the best way to do this?
I'm a tad lost here. Why not just delete it? If instead it defaults to home.php as an index page, get with your host and ask about the order of index pages. I know with some hosting platforms, the webserver defaults to such urls as home.html, home.php, etc and then goes through the index.php's, index.html, etc. Or just why not rename it? What script is this anyway?
Hi jasonvan, Please try add following in your .htaccess file DirectoryIndex home.php index.php Code (markup): more information about DirectoryIndex here: http://httpd.apache.org/docs/1.3/mod/mod_dir.html
Hello, From the title of the thread, i could assume you were using socialengine which became even more clear after i clicked the thread. Anyway, Basically what socialengine does is it redirects your index.php to home.php which indirectly calls the smarty codes from home.tpl which is in your templates folder. So renaming the index.php to home.php might not exactly work, since there are some links that lead to home.php, so i would suggest you.. Copy the contents of home.php to index.php replacing the current content of index.php Alternately, if you want a custom homepage, you can design that and upload it as index.html or index.php with your style css file as style.css in the root dir. Do not hesitate to leave a PM, if you need additional help, We are web-developers and we specialize on socialengine. Hope that helps.
Yes, I used this solution as a temporary fix. Thank you. It worked great. I simply added the code to a .htaccess file and uploaded it...and voila. The solution from Ifreakz was also a very good solution, but it would have taken a bit more time. Yes, this is a socialengine site, so you cannot just rename the file. Ifreakz (i hope I'm not mispelling your name) - are there any issues with just using a .htaccess file? Also, I will definitely pm you when I want to redesign my index page (which will be very soon). Thank you.
Why does it take more time? It's a copy paste job eh. Editing htaccess file isn't the clever way, your htaccess file should be meant for the security of your site and profile re-directions. So make sure your site is highly secure. Also, We design the core script as well, Not just index. Will be glad to hear from you soon. Cheers
if you will change your home.php to index.php your other links coming to home.php will be broken, for doing this also change the home.php into index.php in the links of all other pages
Nice little .htaccess command, I'll use that later on with a site, especially if I start running SocialEngine sites. Also, never rename a file from home.php to index.php -- the tpl and python as well as smarty templates will break upon doing so with SE
No, it won't break. You can try renaming user_group.php to my_group.php - it basically stands the same, just that when you edit user_group.php you'll find the second line saying user_group which is actually the template file, so make sure user_group.tpl exists as it is. Alternatively, you can rename both and change the second line in the php file that calls the tpl. The problem with renaming index.php to home.php as explained in above post is - There are many links in the header and around the script which will link to home.php instead of a '.' '.' the dot refers to the site root, which can be index.php or index.html So if's not a dot, i.e if it's linked to home.php then it'll simply show a 404 error, therefore i suggested to copy the contents to index.php. For a permanent solution, such that home.php dosen't exist all over, we either have to url redirection or search the core for all instances (if any) - replace.