<![CDATA[ YAMS on a temporary url - My Forums]]> https://forums.modx.com/thread/?thread=45614 <![CDATA[Re: YAMS on a temporary url]]> https://forums.modx.com/thread/45614/yams-on-a-temporary-url#dis-post-263868
assuming the url would look like http://12.34.56.78/testdomain.com/... i would try /12.34.56.78/testdomain.com/ or no rewriteBase at all... smiley

have swing]]>
virtualbear Apr 18, 2011, 03:04 PM https://forums.modx.com/thread/45614/yams-on-a-temporary-url#dis-post-263868
<![CDATA[Re: YAMS on a temporary url]]> https://forums.modx.com/thread/45614/yams-on-a-temporary-url#dis-post-263867
Here is my .htaccess source (before I tried the YAMS version)

# For full documentation and other suggested options, please see
# http://svn.modxcms.com/docs/display/MODx096/Friendly+URL+Solutions
# including for unexpected logouts in multi-server/cloud environments
# and especially for the first three commented out rules

#php_flag register_globals Off
#AddDefaultCharset utf-8
#php_value date.timezone Europe/Moscow

Options +FollowSymlinks
RewriteEngine On
RewriteBase /

# Fix Apache internal dummy connections from breaking [(site_url)] cache
RewriteCond %{HTTP_USER_AGENT} ^.*internal\ dummy\ connection.*$ [NC]
RewriteRule .* - [F,L]

# Rewrite domain.com -> www.domain.com -- used with SEO Strict URLs plugin
#RewriteCond %{HTTP_HOST} .
#RewriteCond %{HTTP_HOST} !^www\.example\.com [NC]
#RewriteRule (.*) http://www.example.com/$1 [R=301,L]

# Exclude /assets and /manager directories from rewrite rules
RewriteRule ^(manager|assets) - [L]

# For Friendly URLs
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

# Reduce server overhead by enabling output compression if supported.
#php_flag zlib.output_compression On
#php_value zlib.output_compression_level 5


Here is the code YAMS gives me

# Friendly URLs
RewriteEngine On
RewriteBase /

# Fix Apache internal dummy connections from breaking [(site_url)] cache
RewriteCond %{HTTP_USER_AGENT} ^.*internal\ dummy\ connection.*$ [NC]
RewriteRule .* - [F,L]

# Exclude /assets and /manager directories from rewrite rules
RewriteRule ^(manager|assets) - [L]

# Redirect from mydomain.com/rootname to mydomain.com/rootname/
RewriteRule ^en$ en/ [R=301,L]

# The Friendly URLs part
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^en/(.*)$ index.php?q=$1 [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]


So if we used 12.34.56.78 as my IP and testdomain.com as my domain can you let m eknow what my RewriteBase should be

Thanks so much!]]>
bigSlim Apr 18, 2011, 01:52 PM https://forums.modx.com/thread/45614/yams-on-a-temporary-url#dis-post-263867
<![CDATA[Re: YAMS on a temporary url]]> https://forums.modx.com/thread/45614/yams-on-a-temporary-url#dis-post-263866
the answer seems to be in your question smiley
the htaccess file probably has a RewriteBase / if you used the one that comes with YAMS

try /ip-adress/ instead of / or no rewritebase... even if the best thing would to create a temporary subdomain for your test site as everything works better this way

Have swing]]>
virtualbear Apr 18, 2011, 10:52 AM https://forums.modx.com/thread/45614/yams-on-a-temporary-url#dis-post-263866
<![CDATA[YAMS on a temporary url]]> https://forums.modx.com/thread/45614/yams-on-a-temporary-url#dis-post-263865
Starting to implement YAMS for first time and ran into a problem. I’ve installed YAMS (1.1.9) fine with MODx Evo (1.0.4)

THe problem is that im on a temporary URL as the current site is still live. However, im not sure how to configure the .htaccess file to allow YAMS to work while on this temp url. (e.g - http://IP-Address/domain-name.net/courses.htm)

I’ve messed about with the .htaccess file - using the .htaccess syntax that YAMS gives me too. However, all im getting is 404 page not found and 403 Forbidden access errors.

How can configure to allow me to develop my multilingual site on this temp url.

Hope someone can help

bS]]>
bigSlim Apr 18, 2011, 09:54 AM https://forums.modx.com/thread/45614/yams-on-a-temporary-url#dis-post-263865