Hi guys,
I have Joomla installed on example.com/dev/joomla .
Have created a custom module so the content has images poniting to example.com/dev/joomla/images
I have given only /images and not /dev/joomla/images , so I don't want to edit each contents . Not given just " images " for it will not show when moved to inner pages.
The /images will point to example.com/images , but I want it to point to http://example.com/dev/joomla/images
So I have tried to write some rewrite rules and failed .
1 ) Redirect /images/ http://example.com/dev/joomla/images
<code>
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
RewriteRule ^(.*)$ index.php [F,L]
RewriteBase /dev/joomla
# ScriptAlias /images dev/joomla/images
# Alias /images/ /dev/joomla/images/
# Redirect /images/$ http://example.com/dev/joomla/images
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/index.php
RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$ [NC]
RewriteRule (.*) index.php
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
</code>
Is there any way ?




.
.
.

Bookmarks