PDA

View Full Version : .htaccess conflict with Wordpress


Dezio
06-30-2013, 11:17 AM
Hello,
I installed wordpress and vbullettin forum.
wordpress on /.
vbullettin on /forum
If I try to visit http://www.domain.com/forum all work, but if I try to visit http://www.domain.com/forum/topic I've a 404 error.
his is my .htaccess file:
Code:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

Can anyone help me?
Regards

Dezio
07-01-2013, 03:15 PM
I got this error if I select

Mod Rewrite Friendly URLs

under "Friendly URLs".
Is there an .htaccess file under vbulletin folders?

Lynne
07-01-2013, 03:27 PM
If you are using Mod Rewrite Friendly URLs then you need to upload the .htaccess from the do_not_upload/rewrite directory.

Dezio
07-01-2013, 03:51 PM
Ahh which one?
This one?

apache2/forum/.htaccess?

Im lost about 20 hours to resolve this issue by modifing wordpress .htaccess without success..

Lynne
07-01-2013, 04:44 PM
The one in /apache2 . You would only use the others if you hav stub directories. You may need to also add a RewriteBase to your .htaccess to the wordpress one doesn't cause issues.

Dezio
07-01-2013, 05:16 PM
Ok, I copy the .htaccess from do_not_upload/rewrite/apache2/forum/.htaccess to the /forum/ directory on the server.
I also edited the main .htaccess of wordpress on ./ like this:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]

RewriteCond %{REQUEST_URI} !^/(forum|forum/.*)$

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress


but I've the same problem :/

--------------- Added 1372703151 at 1372703151 ---------------

Ok, found solution:

# If you are having problems or are using VirtualDocumentRoot, uncomment this line and set

it to your forum component directory.
RewriteBase /forum/

;)