Welcome Guest, Not a member yet? Register   Sign In
.htaccess question
#5

(07-01-2016, 12:55 AM)PaulD Wrote: Q1. Normally yes. If you are addressing /codeigniter/ then rules from the route .htaccess will apply, and can be modified or further rules applied by the .htaccess file in the /codeigniter/ folder. A CI remove index.php htaccess should be in the CI root folder, in your case /codeigniter/
Having said that it all depends what you are doing. You can apply rules in the route .htaccess for other subfolders too.

Q2. You can change the webroot for Xampp (assuming you are using that) in their config files. Here is a handy stack overflow answer about it: http://stackoverflow.com/questions/18902...-directory

Personally I would not do this, but just accept that in development locally you have the additional folder in URL's. If you set your base_url in the config this is just one setting to change when you upload it to a live site.

Hope that helps in some way,

Paul.

I found out how now

Code:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^localhost/github/projects$ [NC,OR]
RewriteCond %{REQUEST_URI} !github/projects/public/
RewriteRule (.*) /github/projects/public/$1 [L]
There's only one rule - please don't tell anyone to go and read the manual.  Sometimes the manual just SUCKS!
Reply


Messages In This Thread
.htaccess question - by wolfgang1983 - 07-01-2016, 12:08 AM
RE: .htaccess question - by PaulD - 07-01-2016, 12:55 AM
RE: .htaccess question - by wolfgang1983 - 07-01-2016, 01:03 AM
RE: .htaccess question - by wolfgang1983 - 07-01-2016, 10:27 PM
RE: .htaccess question - by PaulD - 07-01-2016, 01:13 AM



Theme © iAndrew 2016 - Forum software by © MyBB