Newbie Error, migrating site & anything other than default controller won't fire |
[eluser]Guiseppi[/eluser]
it's ver 1.7.1 my config.php is as follows (less the commented out code): Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
[eluser]micflan[/eluser]
Why are you using uri_protocol QUERY_STRING ? Try changing to AUTO.
[eluser]Guiseppi[/eluser]
It was previously set to AUTO (note the //AUTO), the change was made to try something new. Neither result in the solution. It's now set back to AUTO & it's still not working for me. Thx for the suggestion though...
[eluser]micflan[/eluser]
And are you absolutely sure the htaccess is working in that directory? Is this the default apache site or a virtual host? (I'm thinking you might have AllowOverride None set on the virtual host?) You could test the htaccess by creating a file in the root called newfile.php, adding this to .htaccess: Code: RewriteRule ^oldfile$ /newfile.php [NC,L] And try to access http://yoursite/oldfile
[eluser]Guiseppi[/eluser]
[quote author="micflan" date="1302810918"]And are you absolutely sure the htaccess is working in that directory? Is this the default apache site or a virtual host? (I'm thinking you might have AllowOverride None set on the virtual host?) You could test the htaccess by creating a file in the root called newfile.php, adding this to .htaccess: Code: RewriteRule ^oldfile$ /newfile.php [NC,L] And try to access http://yoursite/oldfile[/quote] I've only altered DocumentRoot in /etc/apache2/httpd.conf to point to my /migrated site. Here are my current AllowOverride settings for httpd.conf: Code: # forbid access to the entire filesystem by default permissions on .htaccess are 644 I tried both: Code: RewriteRule ^oldfile$ /newfile.php [NC,L] Code: RewriteRule ^oldfile.php$ /newfile.php [NC,L] http://yoursite/oldfile & http://yoursite/oldfile.php Nothing worked, seems as though .htaccess isn't grabbing, it appears I'm overlooking something obvious to the seasoned user?
[eluser]micflan[/eluser]
Do you have a file at /etc/apache2/sites-available/default ? If so, print the contents of that please.
[eluser]Guiseppi[/eluser]
I do not. This is the basic SuSe 11/LAMP stack install on AWS, with only my /migratedsite moved over & the minor tweaks we've discussed so far.
[eluser]micflan[/eluser]
Do you have a sites-available folder at all? Any files in there? If not... . At least you know what you're looking for now, if you didn't before... looks like the htaccess isn't working! Google it up.
[eluser]Guiseppi[/eluser]
Thanks for the feedback, I'll look into it & report back later today.
[eluser]Guiseppi[/eluser]
Ok, I'm digging back in. Problem still exists (if anyone can help?) So, with AWS running apache2 default setup, I've made the following adds/adjustments: in httpd.conf: Code: LoadModule rewrite_module /usr/lib64/apache2/mod_rewrite.so Under Virtual Server Configuration in httpd.conf: Code: Include /etc/apache2/vhosts.d/*.conf Then I copied the /vhosts.d/vhost.template > /vhosts.d/mysite.com.conf & mapped the flle paths to my content correctly. Now the mysite.com virtual host shows up via the domain. Great. Now I test for mod_rewrite again - When I lookup phpinfo(); , mod_rewrite shows up under installed modules. Next I add success.html in the folder for the content, and an almost empty .htaccess file: Code: <IfModule mod_rewrite.so> Mod_rewrite fails to redirect > success.html I've tried this with as well, no go: Code: <IfModule mod_rewrite.c> PS: I can get success.html to show by hitting it directly via mysite.com/success.html so I know it's not a permissions issue. Help, Any further ideas? |
Welcome Guest, Not a member yet? Register Sign In |