How can I redirect localhost/s to localhost/s/web/index.php to using mod_rewrite?

If rewrite rules you have provided were working fine for you, then this should work fine as well: IfModule mod_rewrite. C> Options +FollowSymlinks -MultiViews RewriteEngine On RewriteBase /s/ RewriteCond %{REQUEST_FILENAME}! -f RewriteRule ^(.*)$ web/index.

Php QSA,L.

If rewrite rules you have provided were working fine for you, then this should work fine as well: Options +FollowSymlinks -MultiViews RewriteEngine On RewriteBase /s/ RewriteCond %{REQUEST_FILENAME}! -f RewriteRule ^(.*)$ web/index. Php QSA,L.

I tried and it don't work, I get a 404 error with localhost/s but it works with localhost/s/index.php. It's a little bit weird. – kevinspencer33 Jul 30 at 14:18 I noticed that localhost/s/index.

Php/aaa don't work either, but localhost/s/web/aaa work's fine. – kevinspencer33 Jul 30 at 14:24 Where do you have this . Htaccess file saved (which folder)?

In any case -- why don't you setup virtual host for a site and access it via some fake domain name (like mysite. Dev) which you can easily do via hosts file? This will save you from a lot of headache.

– LazyOne Jul 30 at 14:27 In the localhost/s/ folder. – kevinspencer33 Jul 30 at 14:30 1) Then it will not work if accessed like localhost/s (without trailing slash -- as localhost/s does not equal to localhost/s/ --you have rewrite base set up, remember? ).2) What do you mean by "it does not work with localhost/s/index.

Php/aaa"? Do you have localhost/s/index. Php file present?

– LazyOne Jul 30 at 14:39.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions