• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
htacess question

#1
[eluser]R_Nelson[/eluser]
first off i would like to remove the index.php from view on the url bar how do i do that?

second ive been following some tutorials and when i try to redirect to another page it breaks but if i go in and add a ? after index.php it works is that something new in 2.0?

#2
[eluser]vikascoollives[/eluser]
You can easily remove this file by using a .htaccess file with some simple rules. Here is an example of such a file, using the "negative" method in which everything is redirected except the specified items:

RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]

#3
[eluser]seeraw[/eluser]
Hi R_Nelson,

Here is the complete code and you dont need to make changes as

$config[‘uri_protocol’] = “REQUEST_URI”;
Keep it AUTO instead rather make change index_page=’’ in config file,
Whats you need to sure that your mod_rewrite should be on change your httpd.conf file setting


RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]

Thanks,
Swapnil


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.