WebFaction
Community site: login faq

im running angular js on my main domain and running prerender node for seo caching.

the problem is i keep on getting 404 on this

<ifmodule mod_rewrite.c=""> RewriteEngine On Options +FollowSymLinks All

    RewriteCond %{HTTP_USER_AGENT} Googlebot|bingbot|Googlebot-Mobile|Baiduspider|Yahoo|YahooSeeker|DoCoMo|Twitterbot|TweetmemeBot|Twikle|Netseer|Daumoa|SeznamBot|Ezooms|MSNBot|Exabot|MJ12bot|sogou\sspider|YandexBot|bitlybot|ia_archiver|proximic|spbot|ChangeDetection|NaverBot|MetaJobBot|magpie-crawler|Genieo\sWeb\sfilter|Qualidator.com\sBot|Woko|Vagabondo|360Spider|ExB\sLanguage\sCrawler|AddThis.com|aiHitBot|Spinn3r|BingPreview|GrapeshotCrawler|CareerBot|ZumBot|ShopWiki|bixocrawler|uMBot|sistrix|linkdexbot|AhrefsBot|archive.org_bot|SeoCheckBot|TurnitinBot|VoilaBot|SearchmetricsBot|Butterfly|Yahoo!|Plukkie|yacybot|trendictionbot|UASlinkChecker|Blekkobot|Wotbox|YioopBot|meanpathbot|TinEye|LuminateBot|FyberSpider|Infohelfer|linkdex.com|Curious\sGeorge|Fetch-Guess|ichiro|MojeekBot|SBSearch|WebThumbnail|socialbm_bot|SemrushBot|Vedma|alexa\ssite\saudit|SEOkicks-Robot|Browsershots|BLEXBot|woriobot|AMZNKAssocBot|Speedy|oBot|HostTracker|OpenWebSpider|WBSearchBot|FacebookExternalHit [NC,OR]
    RewriteCond %{QUERY_STRING} ^(.*_escaped_fragment_=.*)

    <IfModule mod_proxy_http.c>
    RewriteRule ^(.*)$ http://prerender.em0xi0nx.com/http://%{HTTP_HOST}%{REQUEST_URI}? [P,L]
 </IfModule>

</ifmodule>

when im using this RewriteRule ^(.*)$ http://prerender.em0xi0nx.com/http://%{HTTP_HOST}%{REQUEST_URI}? [P,L]

i keep on getting 404 on [P] it it keeps on saying /panel/ not found on my url http://example.com/panel/

but if i change it to [R] its working. i dont really know the problem but while searching this whole day they said its the mod_proxy. i dont really know..

please help me..

asked 02 Mar '15, 11:10

Vladimer Ram...
112
accept rate: 0%


The main issue I notice is this line,

RewriteRule ^(.*)$ http://prerender.em0xi0nx.com/http://%{HTTP_HOST}%{REQUEST_URI}? [P,L]

has http:// twice, which is invalid. Protocol is only defined once in a valid URL.

Read our docs for some working examples of other redirects to see what the syntax typically looks like.

They should not be broken by the '<ifmodule mod_proxy_http.c="">' in the middle either.

permanent link

answered 02 Mar '15, 23:15

johns
5.4k312
accept rate: 23%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×225
×75
×34
×3
×1

question asked: 02 Mar '15, 11:10

question was seen: 2,285 times

last updated: 02 Mar '15, 23:15

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM