[OT] Any htaccess rewrite guru's around?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[OT] Any htaccess rewrite guru's around?

Marc Pinnell-3
Happy Holidays all,

Have a bit of trouble with a redirect this morning. Can anyone lend a hand and spot the problem?

My htaccess file:

# Match / or /index.html (or whatever your index is)
RewriteCond %{REQUEST_URI} ^/(index.html){0,1}$

# Rewrite and redirect 301 to doinglifewithfaydra.com
RewriteRule ^(.*)$ http://www.doinglifewithfaydra.com/podcast/ [L,R=301]

# Contest Page redirect
rewriterule ^/contest(.*) http://doinglifewithfaydra.com/contest-page/$1 [r=301,L]

# Anything else that drops through gets rewritten and redirected
RewriteRule ^(.*)$ http://www.doinglifewithfaydra.com/podcast/$1 [L,R=301]

==

What I am trying to do is redirect: http://accpodcast.com/contest to http://doinglifewithfaydra.com/contest-page/

but... what when I hit the first url I am being directed to: http://www.doinglifewithfaydra.com/podcast/contest (which returns a 404).

Any suggestions or hints?

Marc

Marc Pinnell
1027 Design
PO Box 990872
Redding, CA 96099-0872
530.941.4706
fax: 866.232.5300
www.1027Design.com



#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: [OT] Any htaccess rewrite guru's around?

Bil Corry-3
Try removing the leading / from the pattern:

# Contest Page redirect
rewriterule ^contest(.*) http://doinglifewithfaydra.com/contest-page/$1 [r=301,L]


- Bil

> On Dec 28, 2015, at 1:51 PM, Marc Pinnell <[hidden email]> wrote:
>
> Happy Holidays all,
>
> Have a bit of trouble with a redirect this morning. Can anyone lend a hand and spot the problem?
>
> My htaccess file:
>
> # Match / or /index.html (or whatever your index is)
> RewriteCond %{REQUEST_URI} ^/(index.html){0,1}$
>
> # Rewrite and redirect 301 to doinglifewithfaydra.com
> RewriteRule ^(.*)$ http://www.doinglifewithfaydra.com/podcast/ [L,R=301]
>
> # Contest Page redirect
> rewriterule ^/contest(.*) http://doinglifewithfaydra.com/contest-page/$1 [r=301,L]
>
> # Anything else that drops through gets rewritten and redirected
> RewriteRule ^(.*)$ http://www.doinglifewithfaydra.com/podcast/$1 [L,R=301]
>
> ==
>
> What I am trying to do is redirect: http://accpodcast.com/contest to http://doinglifewithfaydra.com/contest-page/
>
> but... what when I hit the first url I am being directed to: http://www.doinglifewithfaydra.com/podcast/contest (which returns a 404).
>
> Any suggestions or hints?
>
> Marc
>
> Marc Pinnell
> 1027 Design
> PO Box 990872
> Redding, CA 96099-0872
> 530.941.4706
> fax: 866.232.5300
> www.1027Design.com
>
>
>
> #############################################################
>
> This message is sent to you because you are subscribed to
>  the mailing list Lasso [hidden email]
> Official list archives available at http://www.lassotalk.com
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>

#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: [OT] Any htaccess rewrite guru's around?

Marc Pinnell-3
Hey Bil,

No joy at first, then I thought... Hmmmm.... wonder if it is cached? Opened another browser and it works. :( Crud. Must need some caffeine!

Thanks for the help!

Marc


On Dec 28, 2015, at 11:07 AM, Bil Corry <[hidden email]> wrote:

> Try removing the leading / from the pattern:
>
> # Contest Page redirect
> rewriterule ^contest(.*) http://doinglifewithfaydra.com/contest-page/$1 [r=301,L]
>
>
> - Bil
>
>> On Dec 28, 2015, at 1:51 PM, Marc Pinnell <[hidden email]> wrote:
>>
>> Happy Holidays all,
>>
>> Have a bit of trouble with a redirect this morning. Can anyone lend a hand and spot the problem?
>>
>> My htaccess file:
>>
>> # Match / or /index.html (or whatever your index is)
>> RewriteCond %{REQUEST_URI} ^/(index.html){0,1}$
>>
>> # Rewrite and redirect 301 to doinglifewithfaydra.com
>> RewriteRule ^(.*)$ http://www.doinglifewithfaydra.com/podcast/ [L,R=301]
>>
>> # Contest Page redirect
>> rewriterule ^/contest(.*) http://doinglifewithfaydra.com/contest-page/$1 [r=301,L]
>>
>> # Anything else that drops through gets rewritten and redirected
>> RewriteRule ^(.*)$ http://www.doinglifewithfaydra.com/podcast/$1 [L,R=301]
>>
>> ==
>>
>> What I am trying to do is redirect: http://accpodcast.com/contest to http://doinglifewithfaydra.com/contest-page/
>>
>> but... what when I hit the first url I am being directed to: http://www.doinglifewithfaydra.com/podcast/contest (which returns a 404).
>>
>> Any suggestions or hints?
>>
>> Marc
>>
>> Marc Pinnell
>> 1027 Design
>> PO Box 990872
>> Redding, CA 96099-0872
>> 530.941.4706
>> fax: 866.232.5300
>> www.1027Design.com
>>
>>
>>
>> #############################################################
>>
>> This message is sent to you because you are subscribed to
>> the mailing list Lasso [hidden email]
>> Official list archives available at http://www.lassotalk.com
>> To unsubscribe, E-mail to: <[hidden email]>
>> Send administrative queries to  <[hidden email]>
>
> #############################################################
>
> This message is sent to you because you are subscribed to
>  the mailing list Lasso [hidden email]
> Official list archives available at http://www.lassotalk.com
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>

Marc Pinnell
1027 Design
PO Box 990872
Redding, CA 96099-0872
530.941.4706
fax: 866.232.5300
www.1027Design.com



#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: [OT] Any htaccess rewrite guru's around?

Bil Corry-3
Glad it worked, happy new year!

- Bil

> On Dec 28, 2015, at 2:14 PM, Marc Pinnell <[hidden email]> wrote:
>
> Hey Bil,
>
> No joy at first, then I thought... Hmmmm.... wonder if it is cached? Opened another browser and it works. :( Crud. Must need some caffeine!
>
> Thanks for the help!
>
> Marc
>
>
>> On Dec 28, 2015, at 11:07 AM, Bil Corry <[hidden email]> wrote:
>>
>> Try removing the leading / from the pattern:
>>
>> # Contest Page redirect
>> rewriterule ^contest(.*) http://doinglifewithfaydra.com/contest-page/$1 [r=301,L]
>>
>>
>> - Bil
>>
>>> On Dec 28, 2015, at 1:51 PM, Marc Pinnell <[hidden email]> wrote:
>>>
>>> Happy Holidays all,
>>>
>>> Have a bit of trouble with a redirect this morning. Can anyone lend a hand and spot the problem?
>>>
>>> My htaccess file:
>>>
>>> # Match / or /index.html (or whatever your index is)
>>> RewriteCond %{REQUEST_URI} ^/(index.html){0,1}$
>>>
>>> # Rewrite and redirect 301 to doinglifewithfaydra.com
>>> RewriteRule ^(.*)$ http://www.doinglifewithfaydra.com/podcast/ [L,R=301]
>>>
>>> # Contest Page redirect
>>> rewriterule ^/contest(.*) http://doinglifewithfaydra.com/contest-page/$1 [r=301,L]
>>>
>>> # Anything else that drops through gets rewritten and redirected
>>> RewriteRule ^(.*)$ http://www.doinglifewithfaydra.com/podcast/$1 [L,R=301]
>>>
>>> ==
>>>
>>> What I am trying to do is redirect: http://accpodcast.com/contest to http://doinglifewithfaydra.com/contest-page/
>>>
>>> but... what when I hit the first url I am being directed to: http://www.doinglifewithfaydra.com/podcast/contest (which returns a 404).
>>>
>>> Any suggestions or hints?
>>>
>>> Marc
>>>
>>> Marc Pinnell
>>> 1027 Design
>>> PO Box 990872
>>> Redding, CA 96099-0872
>>> 530.941.4706
>>> fax: 866.232.5300
>>> www.1027Design.com
>>>
>>>
>>>
>>> #############################################################
>>>
>>> This message is sent to you because you are subscribed to
>>> the mailing list Lasso [hidden email]
>>> Official list archives available at http://www.lassotalk.com
>>> To unsubscribe, E-mail to: <[hidden email]>
>>> Send administrative queries to  <[hidden email]>
>>
>> #############################################################
>>
>> This message is sent to you because you are subscribed to
>> the mailing list Lasso [hidden email]
>> Official list archives available at http://www.lassotalk.com
>> To unsubscribe, E-mail to: <[hidden email]>
>> Send administrative queries to  <[hidden email]>
>
> Marc Pinnell
> 1027 Design
> PO Box 990872
> Redding, CA 96099-0872
> 530.941.4706
> fax: 866.232.5300
> www.1027Design.com
>
>
>
> #############################################################
>
> This message is sent to you because you are subscribed to
>  the mailing list Lasso [hidden email]
> Official list archives available at http://www.lassotalk.com
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>

#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>