Folder case issue from search engine
6 posts
• Page 1 of 1
Folder case issue from search engine
Greetings,
Need help with a rewrite.
Search engine has index pages with the following case structure
/online-stores/
Need it to be
/Online-Stores/
Can anyone help with this rewrite? How do I do it!
Something like this?
RewriteRule ^online-stores/$ Online-Stores/%1 [R=301,L]
Thanks!
Need help with a rewrite.
Search engine has index pages with the following case structure
/online-stores/
Need it to be
/Online-Stores/
Can anyone help with this rewrite? How do I do it!
Something like this?
RewriteRule ^online-stores/$ Online-Stores/%1 [R=301,L]
Thanks!
Re: Folder case issue from search engine
Hello,
So, you just need the redirect to the same path but with upper case initial letters?
Please try it like this then:
RewriteBase /
RewriteRule ^online-stores/$ Online-Stores/ [R=301,L]
So, you just need the redirect to the same path but with upper case initial letters?
Please try it like this then:
RewriteBase /
RewriteRule ^online-stores/$ Online-Stores/ [R=301,L]
Re: Folder case issue from search engine
Bad news, that didnt work either!
Not sure what to try next....
The folder on the server has the capital letters like this "Online-Stores" for the target folder so it shows up on the Helicon Manager like that also ... will that effect the script?
Tried using the rewriterule on the root folder and the Online-Stores folder, nothing happened...
Theres alot of other rewrites in both the root and target folder, would that also cause issues?
Thanks
Not sure what to try next....
The folder on the server has the capital letters like this "Online-Stores" for the target folder so it shows up on the Helicon Manager like that also ... will that effect the script?
Tried using the rewriterule on the root folder and the Online-Stores folder, nothing happened...
Theres alot of other rewrites in both the root and target folder, would that also cause issues?
Thanks
Re: Folder case issue from search engine
Hello,
Could you please clarify some things:
"The folder on the server has the capital letters like this "Online-Stores"..."
- what does it mean? Is the real folder under the site named "Online-Stores"? Then how do you want it to be redirected?
"Theres alot of other rewrites in both the root and target folder, would that also cause issues?"
- I know nothing about your config and your rules, but you can always test the rules an a local machine or dev environment.
Could you please clarify some things:
"The folder on the server has the capital letters like this "Online-Stores"..."
- what does it mean? Is the real folder under the site named "Online-Stores"? Then how do you want it to be redirected?
"Theres alot of other rewrites in both the root and target folder, would that also cause issues?"
- I know nothing about your config and your rules, but you can always test the rules an a local machine or dev environment.
Re: Folder case issue from search engine
The folder is exactly like this "Online-Stores", the URLS should all be like this too ..
www.*mysite*.com/Online-Stores/cooking.asp
www.*mysite*.com/Online-Stores/clothing.asp
www.*mysite*.com/Online-Stores/hardward.asp
but for some reason there are urls in search engine that are like this...
www.*mysite*.com/online-stores/cooking.asp
www.*mysite*.com/online-stores/clothing.asp
www.*mysite*.com/online-stores/hardward.asp
www.*mysite*.com/Online-Stores/cooking.asp
www.*mysite*.com/Online-Stores/clothing.asp
www.*mysite*.com/Online-Stores/hardward.asp
but for some reason there are urls in search engine that are like this...
www.*mysite*.com/online-stores/cooking.asp
www.*mysite*.com/online-stores/clothing.asp
www.*mysite*.com/online-stores/hardward.asp
Re: Folder case issue from search engine
Now I see what you mean. Please try to fix the config like this:
RewriteBase /
RewriteRule ^online-stores/(.*)$ Online-Stores/$1 [R=301,L]
RewriteBase /
RewriteRule ^online-stores/(.*)$ Online-Stores/$1 [R=301,L]
6 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 2 guests