Hi my blog tool uses mod_rewrite to produce SE friendly url's however i have had to turn this feature off because my i can't the mod rewrite function with my host currentley forget that issue anyways.. i need to know how i can rename the files myself without the use of mod_rewrite, is this possible? for example is there anyway i could physically rename the file myself, or add a field where i can type in a file name when creating a new article or some sort of workaround?
Rewriting is used to remove querystring variables (the bits after a ?). Typically this is done as the different pages dont actually exist but instead there is a single page and the individual content is pulled through from a db. The way around it would be to actually have files. When a new page is added a new file/ directory would have to be created with the appropriate name. It would be up to you if you have the actual content in the page/ default page or if you store it in the db still and simply have the code add the necessary parameters to the file
Thanks for the help, so is there no way to rename files phyically in phpMyAdmin, i need to change the ?id=x to text of my choice but haven't the slightest clue on how to go about it? I have the option to create a static filename on a new blog but not the individual posts would it work by obtaining this code and fiddling around with it to work for individual posts. This is the code that is used to create static name for a new BLOG: // The static file for the blog if(empty($_POST['static_file'])) { $file=$_POST['blog_name']; } else { $file=$_POST['static_file']; } $file=str_replace(" ","_", $file).".php"; if($file != $i_blog['blog_file']) { // The static file already exists if(file_exists(CFG_PARENT."/$file")) { bmc_template('error_admin', $lang['admin_blog_new_file_no']); } } Code (markup): is it possible to repeat this function for a new ARTICLE?