I want new domain to point existing site sub folder of joomla2.5
for example: http://olddomain.com/subfolder is working but
http://newdomain.com is not working
I have tried
Options +FollowSymlinks
RewriteEngine on
rewriterule ^subfolder/(.*)$ http://newdomain.com/$1 [r=301,nc]
but not working
Thanks for help in advance.
The most simple solution is to change the DNS entry for newdomain.com and let it point to the subfolder directly.
Move the files to the right location, it's really not meaningful to fool apache on every request and moving stuff around, you're really looking for trouble here.
Maybe you should clear the cache? check the configuration.php for wrong paths? set up a fresh .htaccess?
Related
I dont have much knowledge about joomla, So my site link is as siteurl/services/digital-antenna-installation-brisbane which I want to redirect or change to siteurl/digital-antenna-installation-brisbane
Can anyone Please help me on that will guide me how should I do it in joomla. What I tried so far is editing the .htaccess file. I did it as follows.
RewriteRule ^services/digital-tv-antenna-installation-brisbane$ /digital-antenna-installation-brisbane [R=301,L]
but that did not work. can anyone guide me how to do it. Thanks In advance.
The free version of Direct Alias will fix this issue for you:
http://extensions.joomla.org/extensions/extension/site-management/sef/direct-alias
Direct Alias, "allows you to control menu item alias and have short SEF URLs without including aliases of parent menu items."
Quick question-
Noticed a problem on my Magento 1.7. Consider the site http://www.seacadetshipsstore.com/magento/. This site has a sub-store that's /magento/gearlocker/. The two should be isolated - if you go to /magento/gearlocker/, you shouldn't interact with the generic store at /magento/ at all.
Here's the problem: the store's base URL is set explicitly to http://www.seacadetshipsstore.com/magento/gearlocker/. When users navigate to http://seacadetshipsstore.com/magento/gearlocker/ (no www), they get redirected to http://www.seacadetshipsstore.com/magento/.
My question is this: if a user navigates to the gearlocker site without www, is there a way to set a second store URL to prevent a redirect? Or would it be easier to control that redirect back to /magento/gearlocker/, instead of /magento/? Any thoughts, solutions, or references would be greatly appreciated. Thanks!
See my comments above. Thanks #CodeMoose
RewriteEngine On
RewriteCond %{HTTP_HOST} ^seacadetshipsstore.com
RewriteRule (.*) http://http://www.seacadetshipsstore.com/magento/$1 [R=301,L]
If I remember correctly I believe duplicate urls across multiple stores are not possible without one of the urls being auto incremented with a -1 -2 etc. Please try modifying one of the url keys and let me know what happens.
I have some old files that need to point to new files - the old files are indexed from Google like this: old%20file%20here.pdf - because the last people doing the site left spaces in file names - but in my Rewrites they just aren't matching the old file to send to the new - does anyone know how to ignore the %20 and redirect right?
My rewrite code here:
RewriteRule ^downloads/old%file%20here.pdf$ http://www.domain.co.uk/new-file.pdf [R=301,L]
Its working fine for rest of redirects which are pages with normal URLs.
found the answer, this is it
[space]name (so should be \ name) instead of what i was doing which was \%20name
hope this helps any one else!
I have installed magento from Plesk,The home is well,with layout buy when I click any link it show "Not Found" message.
I can not figure out the problem
Thanks in advance.
It looks like you have a problem with Apache mod_rewrite.
Anyway, you can check is it true. Let's just say that you where going to open http://www.example.com/electronics and got 404. Ok, no panic. Try to edit URL to be like this: http://www.example.com/index.php/electronics
If it works, than definitely you have a troubles with one of the following:
Apache mod_rewrite is not enabled. If you can open a page with phpinfo(), you may try to search "mod_rewrite" on that page. No results found -- no mod_rewrite... Call your hosting support.
You need to set RewriteBase directive in your .htaccess file (it may be hidden for web based filemanager). By default the line with RewriteBase is commented, and you can uncomment it and leave it's default value "/" if your Magento is uploaded to document root. If your Magento is in some sub-directory under document root, you need to set RewriteBase value lie this "/my_folder_with_magento".
This is probably straight forward for someone who know apache mod rewrite and regex but that someone is not me.
This is what I am looking for :
I just want to re-route image,css requests to one shared repository image/css file. e.g. we have 6-7 sites which can be on same server or different.
Currently, image looks like this /img/site1_header.jpg, all I want is that internally this request should become /img/header.jpg so basically remove the variable 'site1' (or site2,site 3)
Any help appreciated.
thanks
I haven't tested it, but I expect it will look something like:
RewriteEngine On
RewriteRule ^(.*)/(site[0-9]*_)(.*)$ $1/$2 [PT,L]