CodeIgniter Forums
Codeigniter URL Editing and title editing of my application :( - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forum-22.html)
+--- Thread: Codeigniter URL Editing and title editing of my application :( (/thread-31084.html)



Codeigniter URL Editing and title editing of my application :( - El Forum - 06-06-2010

[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 Smile
Code:
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index\.php|install|scripts|fonts|uploads|robots\.txt|sitemap\.xml|favicon\.ico)
RewriteRule ^(.*)$ /index.php?/$1 [L]
RewriteCond %{HTTP:Accept-Encoding} gzip
RewriteCond %{REQUEST_FILENAME}.jgz -f
RewriteRule (.*)\.js$ $1\.js.jgz [L]



Codeigniter URL Editing and title editing of my application :( - El Forum - 06-06-2010

[eluser]thinkigniter[/eluser]
try making it a little more simple
Code:
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?/$1 [L]

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.


Codeigniter URL Editing and title editing of my application :( - El Forum - 06-06-2010

[eluser]The CyberWizard[/eluser]
[quote author="thinkigniter" date="1275883629"]try making it a little more simple
Code:
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?/$1 [L]

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!


Codeigniter URL Editing and title editing of my application :( - El Forum - 06-08-2010

[eluser]The CyberWizard[/eluser]
no replies?


Codeigniter URL Editing and title editing of my application :( - El Forum - 06-09-2010

[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');
And modify title with php code:
Code:
echo '<title>'.$your title variable or just string.'</title>';
Hope that would help,
Regards,


Codeigniter URL Editing and title editing of my application :( - El Forum - 06-09-2010

[eluser]Eric Barnes[/eluser]
Might be missing it but shouldn't you be using routes for this and not the .htaccess file?


Codeigniter URL Editing and title editing of my application :( - El Forum - 06-11-2010

[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 Sad