Welcome Guest, Not a member yet? Register   Sign In
Newbie Error, migrating site & anything other than default controller won't fire
#15

[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
<Directory />
    Options None
    AllowOverride All
    Order deny,allow
    Deny from all
</Directory>

# use .htaccess files for overriding,
AccessFileName .htaccess
# and never show them
<Files ~ "^\.ht">
    Order allow,deny
    Deny from all
</Files>

permissions on .htaccess are 644

I tried both:
Code:
RewriteRule ^oldfile$ /newfile.php [NC,L]
Code:
RewriteRule ^oldfile.php$ /newfile.php [NC,L]
Then tried accessing:
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?


Messages In This Thread
Newbie Error, migrating site & anything other than default controller won't fire - by El Forum - 04-14-2011, 09:39 AM



Theme © iAndrew 2016 - Forum software by © MyBB