Welcome Guest, Not a member yet? Register   Sign In
Codeigniter URL Editing and title editing of my application :(
#1

[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]
#2

[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.
#3

[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!
#4

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

[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,
#6

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

[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




Theme © iAndrew 2016 - Forum software by © MyBB