Codeigniter URL Editing and title editing of my application :( |
[eluser]The CyberWizard[/eluser]
I run a CodeIgniter application and i want to know what should i do to get the desired result.! I run a wallpaper website (OFFLINE) on localhost and when i turn off the seo friendly urls,the url is http://localhost/index.php?/categories/show/1 quite ok! when i turn on the mod_write setting the link of category is http://localhost/Category+Name+1/ an whn i see a specific wallpaper from the category ,url is http://localhost/Wallpaper_name.html but i want http://localhost/category_name/wallpaper_name.html wat should i do to modify it? Also i want to edit titles of my pages where should i llook into.?PLEASE SAY Please HELP CI Members Here is my HTACCESS FILE FOR URL REWRITING Code: Options +FollowSymLinks
[eluser]thinkigniter[/eluser]
try making it a little more simple Code: Options +FollowSymLinks To change the Title of the page change the content on the title tag in your code E.G. <title>This is my new title</title> Good Luck.
[eluser]The CyberWizard[/eluser]
[quote author="thinkigniter" date="1275883629"]try making it a little more simple Code: Options +FollowSymLinks To change the Title of the page change the content on the title tag in your code E.G. <title>This is my new title</title> Good Luck.[/quote] i will keep the htacccess more simpler and as for changing the titles where should i look for i tried searching every file but no success can anyone tell the default location of files having header information!
[eluser]toro[/eluser]
In you view of course, Maybe You should look at your controller for load view like this Code: $this->load->view('yourview'); Code: echo '<title>'.$your title variable or just string.'</title>'; Regards,
[eluser]Eric Barnes[/eluser]
Might be missing it but shouldn't you be using routes for this and not the .htaccess file?
[eluser]The CyberWizard[/eluser]
i checked in vierws too maybe the appllication i am using is a bad work of coder/programmer or it may be so to provide security.... no progresss yet |
Welcome Guest, Not a member yet? Register Sign In |