close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

htaccess files

Thread began 2/01/2023 5:24 pm by Patrice | Last modified 2/04/2023 3:48 pm by Ray Borduin | 227 views | 4 replies |

PatriceWebAssist

htaccess files

I am inheriting a site from fellow dev who has different htaccess than I am using to make DA work.

~~

first dev using this

~~~

RewriteEngine on

RewriteOptions inherit

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName www.shorehavenbhi.com
RewriteCond %{HTTPS} off
RewriteCond %{HTTP:X-Forwarded-SSL} !on
RewriteCond %{HTTP_HOST} ^shorehavenbhi\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.shorehavenbhi\.com$
RewriteRule ^/?$ "https\:\/\/www\.shorehavenbhi\.com\/" [R=301,L]

# php -- BEGIN cPanel-generated handler, do not edit
# This domain inherits the "PHP" package.
# php -- END cPanel-generated handler, do not edit

~~~

My usual has this which manages SQL input, via webassist.

ErrorDocument 404 /404.html

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{SERVER_PORT} !^443$
RewriteCond %{REQUEST_URI} !/_mmServerScripts/.*
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule>

Can they co-exist on server?
What should I change?
Note: I have to keep the older site live while I work on new conversion from GoLive to DW and incorporate mysql / php stuff. There is a significant private area that I will not convert until later, so need to make all of it work ok.

Any help, most appreciated!

We both have our own dedicated servers, but within the same hosting company if that helps.

Sign in to reply to this post

Ray BorduinWebAssist

Your security rule shouldn't be necessary. It looks like a workaround you found when you had forgotten to use https:// in your dreamweaver testing server settings. Make sure your dreamweaver testing server settings use the full website url (for this site it includes https and www.)

Sign in to reply to this post
Did this help? Tips are appreciated...

PatriceWebAssist

It's been a long time ago that you helped me with this work around. On older C6 DW, I wasn't able to use https in the site management, so maybe now in the new DW 2022 version, the work around isn't necessary?

So if I understand you correctly, I don't need to add this to the existing site?

Thanks for the help.

Sign in to reply to this post

Ray BorduinWebAssist

Yes... your htaccess should not be necessary if your Dreamweaver testing server is up to date. I think there was a period when Dreamweaver wouldn't work with some https sites, so maybe this is a remnant of that, but it shouldn't be an issue anymore.

Sign in to reply to this post
Did this help? Tips are appreciated...

PatriceWebAssist

Thank you so much!

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...