Problem with mod rewrite

I installed Dolphin 7.1.3 in a sub folder. The root has a site that uses mod rewrite to generate search engine friendly URLs. The code in the htaccess is:

<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On

# Change "catalog" to your catalog directory name:
#RewriteBase /catalog/
## If installed to the base home/root directory, uncomment the below code only:
RewriteBase /

RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-c-(.*).html$ index.php?cPath=$2&%{QUERY_STRING}
RewriteRule ^(.*)-m-([0-9]+).html$ index.php?manufacturers_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pi-([0-9]+).html$ popup_image.php?pID=$2&%{QUERY_STRING}
RewriteRule ^(.*)-t-([0-9]+).html$ articles.php?tPath=$2&%{QUERY_STRING}
RewriteRule ^(.*)-a-([0-9]+).html$ article_info.php?articles_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pr-([0-9]+).html$ product_reviews.php?products_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pri-([0-9]+).html$ product_reviews_info.php?products_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-i-([0-9]+).html$ information.php?info_id=$2&%{QUERY_STRING}
</ifModule>
# EOF: MOD - Ultimate SEO URLs

Most of the Dolphin modules will not run with this htaccess code. I get a 404 not found when I click on Ads, Blogs, Chat, Events, etc. I would like to use search engine friendly URLs in the site in the root but cannot with this problem. How can I get Dolphin to run in the sub folder with this htaccess in the root?

Thanks,

Dan

Quote · 14 Jul 2013

I am also running 7.1.3 in a sub folder, and when I had the problem that you are describing, it was that my .htacess file was not actually uploaded to my subfolder - something to do with linux not showing certain files, so after i changed the setting to show hidden files, then I was able to upload all htacess files. and that resolved my 404 errors

caredesign.net
Quote · 15 Jul 2013

Continuing to work on this problem, if I turn off the permalinks in Advanced Settings I can get everything to work except the forum, which still has the same problem. How can I get the forum to run or get all the links in Dolphin to work with search engine friendly links?

Thanks,

Dan

Quote · 15 Jul 2013

Correct. Dolphin comes with it's own .htaccess file that you must use in the subfolder.

As ProfessorSr mentioned. Make sure it got uploaded from the dolphin zip file.

https://www.deanbassett.com
Quote · 15 Jul 2013

OK, that actually sparked something in my brain. I remember a post concerning the same scenario you are describing. In this case, I believe, the person was using IIS as their web server. Are you using IIS or Apache for your webserver?

I will look for the other post.

caredesign.net
Quote · 15 Jul 2013

My dolphin htaccess folder is uploaded to the sub folder, but it appears as though it is in conflict with the htaccess file in the root, which uses search engine friendly URLs.

Quote · 15 Jul 2013

I am using Apache, the dolphin htaccess file is in the sub folder. I can turn off all the permalinks except the forum permalinks. This will allow everything to work except the forums, there is no checkbox to turn off forums in the permalinks settings.

Quote · 15 Jul 2013

Then it is most likely a server issue. Apache not processing the .htaccess file in the sub folder.

Contact your host. Because if it is there it should work. Other people do run multiple sites with different htaccess files. Conflicts are not the issue. Server configuration is the issue.

https://www.deanbassett.com
Quote · 15 Jul 2013

It seems to be a conflict with the htaccess file in the root because if I take the mod rewrite out of the root htaccess then the dolphin runs fine, proving that the htaccess file is working in the sub folder. The root site is an ecommerce site with a completely different htaccess file. I had this problem once before with a wordpress site in the root and dolphin is a sub folder and solved it by not using search engine friendly URLs in the wordpress site but I need them here.

Quote · 15 Jul 2013

Try adding this in the .htaccess file in the dolphin folder.

After this line

RewriteEngine On

Add This

RewriteBase /

See if that does anything. If not, then you should contact your host to find out how to resolve the conflicts as you need a expert at configuring servers.





https://www.deanbassett.com
Quote · 15 Jul 2013

Thanks Deano, but that did not work. I have emailed the host to see if they have any answers. Since everything works except the forum if I uncheck everything in permalinks I should be able to turn off the forum search engine friendly URLs but there is no check box to turn the forum permalinks off. I tried removing them from the dolphin htaccess folder but that did not work. I tried typing in a direct URL to the forum index, thinking I could change the links in th enav bar,  but I get strange characters where the links at the top of the forum should be. Any idea how I can turn off the forum search engine friendly links?

Dan

Quote · 15 Jul 2013

 

Thanks Deano, but that did not work. I have emailed the host to see if they have any answers. Since everything works except the forum if I uncheck everything in permalinks I should be able to turn off the forum search engine friendly URLs but there is no check box to turn the forum permalinks off. I tried removing them from the dolphin htaccess folder but that did not work. I tried typing in a direct URL to the forum index, thinking I could change the links in th enav bar,  but I get strange characters where the links at the top of the forum should be.

Dan

There is not a check box for that because the forum was not written that way. It's been requested ans as far as i know boonex is working on it. But there is no current way to turn them off for the forums.


https://www.deanbassett.com
Quote · 15 Jul 2013

ok so what if you copy the rules from the sub folder and paste them into the root .htaccess file you may need to add the /subfolder name in front of all the dolphin rules though...  

if what dean said does not work also try

RewriteBase /DolphinSubFolderName/    replace dolphin sub folder name with the actual sub folder name.

https://dolphin-techs.com - Skype: Dolphin Techs
Quote · 15 Jul 2013

Ok. Try this.

Remove the change made to the dolphin htaccess file and do this instead.

Edit the htaccess file in the root of your site

After the line RewriteEngine On

Add this.

RewriteCond %{REQUEST_URI} "/folder_dolphin_is_in/"
RewriteRule (.*) $1 [L]

Replace folder_dolphin_is_in with the name of the subfolder you installed dolphin in.

That should tell the root one not to touch the dolphin sub-folder which in theory should get rid of the conflicts.




https://www.deanbassett.com
Quote · 15 Jul 2013

lol  gotcha by 1 minute

https://dolphin-techs.com - Skype: Dolphin Techs
Quote · 15 Jul 2013

Thanks Deano and Dolphin Jay,

I tried  the things you suggested and nothing seems to work correctly. Right now I have the SE friendly URLs shut off in the root and Dolphin runs fine with SE friendly URLs turned on. It is not an ideal solution but at least everything runs.

I will continue to work on this,

Thanks again,

Dan

Quote · 15 Jul 2013
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.